diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-02-08 22:06:42 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-02-10 09:10:28 +0000 |
commit | 025a785ff083729819dc82ac81baf190cb4aee5c (patch) | |
tree | 066d8824033e761f2dc333eeed163e7c5492ae84 /include/linux/skbuff.h | |
parent | 01a7ee36e7649b3b12212e6648eb017e7f7e1269 (diff) | |
download | lwn-025a785ff083729819dc82ac81baf190cb4aee5c.tar.gz lwn-025a785ff083729819dc82ac81baf190cb4aee5c.zip |
net: skbuff: drop the word head from skb cache
skbuff_head_cache is misnamed (perhaps for historical reasons?)
because it does not hold heads. Head is the buffer which skb->data
points to, and also where shinfo lives. struct sk_buff is a metadata
structure, not the head.
Eric recently added skb_small_head_cache (which allocates actual
head buffers), let that serve as an excuse to finally clean this up :)
Leave the user-space visible name intact, it could possibly be uAPI.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index c3df3b55da97..47ab28a37f2f 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -1243,7 +1243,7 @@ static inline void consume_skb(struct sk_buff *skb) void __consume_stateless_skb(struct sk_buff *skb); void __kfree_skb(struct sk_buff *skb); -extern struct kmem_cache *skbuff_head_cache; +extern struct kmem_cache *skbuff_cache; void kfree_skb_partial(struct sk_buff *skb, bool head_stolen); bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from, |