Searched refs:fclones (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/net/core/ |
D | skbuff.c | 243 struct sk_buff_fclones *fclones; in __alloc_skb() local 245 fclones = container_of(skb, struct sk_buff_fclones, skb1); in __alloc_skb() 248 refcount_set(&fclones->fclone_ref, 1); in __alloc_skb() 250 fclones->skb2.fclone = SKB_FCLONE_CLONE; in __alloc_skb() 632 struct sk_buff_fclones *fclones; in kfree_skbmem() local 640 fclones = container_of(skb, struct sk_buff_fclones, skb1); in kfree_skbmem() 646 if (refcount_read(&fclones->fclone_ref) == 1) in kfree_skbmem() 651 fclones = container_of(skb, struct sk_buff_fclones, skb2); in kfree_skbmem() 654 if (!refcount_dec_and_test(&fclones->fclone_ref)) in kfree_skbmem() 657 kmem_cache_free(skbuff_fclone_cache, fclones); in kfree_skbmem() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | skbuff.h | 1132 const struct sk_buff_fclones *fclones; in skb_fclone_busy() local 1134 fclones = container_of(skb, struct sk_buff_fclones, skb1); in skb_fclone_busy() 1137 refcount_read(&fclones->fclone_ref) > 1 && in skb_fclone_busy() 1138 fclones->skb2.sk == sk; in skb_fclone_busy()
|