Lines Matching defs:old
937 static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
939 new->tstamp = old->tstamp;
940 /* We do not copy old->sk */
941 new->dev = old->dev;
942 memcpy(new->cb, old->cb, sizeof(old->cb));
943 skb_dst_copy(new, old);
944 __skb_ext_copy(new, old);
945 __nf_copy(new, old, false);
950 new->queue_mapping = old->queue_mapping;
952 memcpy(&new->headers_start, &old->headers_start,
1483 void skb_copy_header(struct sk_buff *new, const struct sk_buff *old)
1485 __copy_skb_header(new, old);
1487 skb_shinfo(new)->gso_size = skb_shinfo(old)->gso_size;
1488 skb_shinfo(new)->gso_segs = skb_shinfo(old)->gso_segs;
1489 skb_shinfo(new)->gso_type = skb_shinfo(old)->gso_type;
1658 * if shinfo is shared we must drop the old head gracefully, but if it
1659 * is not we can just drop the old head and let the existing refcount
1917 * the old data.
3204 * @old: buffer to insert after
3212 void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list)
3217 __skb_queue_after(list, old, newsk);
4556 * OK, link new skb, drop old one */
5990 /* drop the old head gracefully */
6258 static struct skb_ext *skb_ext_maybe_cow(struct skb_ext *old,
6263 if (refcount_read(&old->refcnt) == 1)
6264 return old;
6270 memcpy(new, old, old->chunks * SKB_EXT_ALIGN_VALUE);
6275 struct sec_path *sp = skb_ext_get_ptr(old, SKB_EXT_SEC_PATH);
6282 __skb_ext_put(old);
6326 struct skb_ext *new, *old = NULL;
6330 old = skb->extensions;
6332 new = skb_ext_maybe_cow(old, skb->active_extensions);