Lines Matching defs:clone
989 /* When we clone an SKB we copy the reycling bit. The pp_recycle
1016 /* We usually free the clone (TX completion) before original skb
1017 * This test would have no chance to be true for the clone,
1118 /* if SKB is a clone, don't handle this case */
1355 /* if SKB is a clone, don't handle this case */
1880 * @skb: buffer to clone
2683 struct sk_buff *clone = NULL;
2700 clone = skb_clone(list, GFP_ATOMIC);
2701 if (!clone)
2704 list = clone;
2711 kfree_skb(clone);
2723 /* And insert new clone at head. */
2724 if (clone) {
2725 clone->next = list;
2726 skb_shinfo(skb)->frag_list = clone;
5176 * skb_clone_sk - create clone of skb, and take reference to socket
5177 * @skb: the skb to clone
5179 * This function creates a clone of a buffer that holds a reference on
5191 struct sk_buff *clone;
5196 clone = skb_clone(skb, GFP_ATOMIC);
5197 if (!clone) {
5202 clone->sk = sk;
5203 clone->destructor = sock_efree;
5205 return clone;
5760 * the clone disappearing) and rare, so not worth dealing with.
6423 struct sk_buff *clone = NULL;
6439 clone = skb_clone(list, gfp_mask);
6440 if (!clone)
6443 list = clone;
6449 kfree_skb(clone);
6461 /* And insert new clone at head. */
6462 if (clone) {
6463 clone->next = list;
6464 shinfo->frag_list = clone;
6565 struct sk_buff *clone = skb_clone(skb, gfp);
6567 if (!clone)
6570 if (pskb_carve(clone, off, gfp) < 0 ||
6571 pskb_trim(clone, to_copy)) {
6572 kfree_skb(clone);
6575 return clone;
6788 /* If this is last clone, nothing can increment