Lines Matching defs:new
379 * that this "new" pointer needs to be passed back to the
429 * Allocate a new &sk_buff. Caller provides space holding head and
434 * The return is the new skb buffer.
503 * Returns a new &sk_buff on success, %NULL on allocation failure.
527 * Returns a new &sk_buff on success, %NULL on allocation failure.
598 /* Allocate a new skbuff. We do this ourselves so we can fill in a few
614 * Allocate a new &sk_buff. The returned buffer has no headroom and a
691 * Allocate a new &sk_buff and assign it a usage count of one. The
765 * Allocate a new sk_buff for use in NAPI receive. This buffer will
1371 static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
1373 new->tstamp = old->tstamp;
1375 new->dev = old->dev;
1376 memcpy(new->cb, old->cb, sizeof(old->cb));
1377 skb_dst_copy(new, old);
1378 __skb_ext_copy(new, old);
1379 __nf_copy(new, old, false);
1384 new->queue_mapping = old->queue_mapping;
1386 memcpy(&new->headers, &old->headers, sizeof(new->headers));
1419 * You should not add any new code to this function. Add it to
1600 /* TCP can create new skb to attach new uarg */
1729 * TCP appends to an skb, but zerocopy_realloc triggered a new alloc.
1883 * Duplicate an &sk_buff. The new one is not owned by a socket. Both
1884 * copies share the same packet data but not structure. The new
1886 * function returns %NULL otherwise the new buffer is returned.
1938 void skb_copy_header(struct sk_buff *new, const struct sk_buff *old)
1940 __copy_skb_header(new, old);
1942 skb_shinfo(new)->gso_size = skb_shinfo(old)->gso_size;
1943 skb_shinfo(new)->gso_segs = skb_shinfo(old)->gso_segs;
1944 skb_shinfo(new)->gso_type = skb_shinfo(old)->gso_type;
1997 * @headroom: headroom of new skb
2202 /* We can not change skb->end if the original or new value
2219 * we need to move skb_shinfo() to its new location.
2235 * Unlike skb_realloc_headroom, this one does not allocate a new skb
2236 * if possible; copies skb->sk to new skb as needed
2284 * @newheadroom: new free bytes at head
2285 * @newtailroom: new free bytes at tail
2292 * private copy of the data to alter as well as more space for new fields.
2494 * @len: new length
2628 * or value of new tail of skb in the case of success.
2643 /* If skb has not enough free space at tail, get new one
2723 /* And insert new clone at head. */
3475 * zero. The new checksum is stored back into skb->csum unless the skb is
3923 * @len: new length for skb
4424 * a pointer to the first in a list of new skbs for the segments.
4966 * So the caller can mannipulate sg list as will when padding new data after
5086 * OK, link new skb, drop old one */
6071 * skb_eth_push() - Add a new Ethernet header at the head of a packet
6074 * @dst: Destination MAC address of the new header
6075 * @src: Source MAC address of the new header
6077 * Prepend @skb with a new Ethernet header.
6125 * skb_mpls_push() - push a new MPLS header after mac_len bytes from start of
6130 * @mpls_proto: ethertype of the new MPLS header (expects 0x8847 or 0x8848)
6229 * @mpls_lse: new MPLS label stack entry to update to
6461 /* And insert new clone at head. */
6560 * a new skb
6619 * __skb_ext_alloc - allocate a new skb extensions storage
6629 struct skb_ext *new = kmem_cache_alloc(skbuff_ext_cache, flags);
6631 if (new) {
6632 memset(new->offset, 0, sizeof(new->offset));
6633 refcount_set(&new->refcnt, 1);
6636 return new;
6642 struct skb_ext *new;
6647 new = kmem_cache_alloc(skbuff_ext_cache, GFP_ATOMIC);
6648 if (!new)
6651 memcpy(new, old, old->chunks * SKB_EXT_ALIGN_VALUE);
6652 refcount_set(&new->refcnt, 1);
6672 return new;
6715 struct skb_ext *new, *old = NULL;
6721 new = skb_ext_maybe_cow(old, skb->active_extensions);
6722 if (!new)
6725 if (__skb_ext_exist(new, id))
6728 newoff = new->chunks;
6730 newoff = SKB_EXT_CHUNKSIZEOF(*new);
6732 new = __skb_ext_alloc(GFP_ATOMIC);
6733 if (!new)
6738 new->chunks = newlen;
6739 new->offset[id] = newoff;
6742 skb->extensions = new;
6744 return skb_ext_get_ptr(new, id);