Searched refs:fclones (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.15/net/core/ |
D | skbuff.c | 447 struct sk_buff_fclones *fclones; in __alloc_skb() local 449 fclones = container_of(skb, struct sk_buff_fclones, skb1); in __alloc_skb() 452 refcount_set(&fclones->fclone_ref, 1); in __alloc_skb() 454 fclones->skb2.fclone = SKB_FCLONE_CLONE; in __alloc_skb() 696 struct sk_buff_fclones *fclones; in kfree_skbmem() local 704 fclones = container_of(skb, struct sk_buff_fclones, skb1); in kfree_skbmem() 710 if (refcount_read(&fclones->fclone_ref) == 1) in kfree_skbmem() 715 fclones = container_of(skb, struct sk_buff_fclones, skb2); in kfree_skbmem() 718 if (!refcount_dec_and_test(&fclones->fclone_ref)) in kfree_skbmem() 721 kmem_cache_free(skbuff_fclone_cache, fclones); in kfree_skbmem() [all …]
|
/Linux-v5.15/include/linux/ |
D | skbuff.h | 1147 const struct sk_buff_fclones *fclones; in skb_fclone_busy() local 1149 fclones = container_of(skb, struct sk_buff_fclones, skb1); in skb_fclone_busy() 1152 refcount_read(&fclones->fclone_ref) > 1 && in skb_fclone_busy() 1153 READ_ONCE(fclones->skb2.sk) == sk; in skb_fclone_busy()
|