skbuff: pass the result of data ksize to __build_skb_around
authorLi RongQing <lirongqing@baidu.com>
Wed, 22 Sep 2021 06:17:19 +0000 (14:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Sep 2021 13:20:01 +0000 (14:20 +0100)
commita5df6333f1a08380c3b94a02105482263711ed3a
treef8a15e88ea1d210d500d307f9a8fb9f743ec579e
parentdb4278c55fa53760893266538e86e638330b03bb
skbuff: pass the result of data ksize to __build_skb_around

Avoid to call ksize again in __build_skb_around by passing
the result of data ksize to __build_skb_around

nginx stress test shows this change can reduce ksize cpu usage,
and give a little performance boost

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c