Lines Matching defs:new

159 /* 	Allocate a new skbuff. We do this ourselves so we can fill in a few
175 * Allocate a new &sk_buff. The returned buffer has no headroom and a
298 * Allocate a new &sk_buff. Caller provides space holding head and
302 * The return is the new skb buffer.
423 * Allocate a new &sk_buff and assign it a usage count of one. The
498 * Allocate a new sk_buff for use in NAPI receive. This buffer will
937 static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
939 new->tstamp = old->tstamp;
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,
986 * You should not add any new code to this function. Add it to
1157 /* TCP can create new skb to attach new uarg */
1293 * TCP appends to an skb, but zerocopy_realloc triggered a new alloc.
1429 * Duplicate an &sk_buff. The new one is not owned by a socket. Both
1430 * copies share the same packet data but not structure. The new
1432 * function returns %NULL otherwise the new buffer is returned.
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;
1548 * @headroom: headroom of new skb
1737 * @newheadroom: new free bytes at head
1738 * @newtailroom: new free bytes at tail
1745 * private copy of the data to alter as well as more space for new fields.
1928 * @len: new length
2062 * or value of new tail of skb in the case of success.
2077 /* If skb has not enough free space at tail, get new one
2157 /* And insert new clone at head. */
2862 * zero. The new checksum is stored back into skb->csum unless the skb is
3288 * @len: new length for skb
3804 * a pointer to the first in a list of new skbs for the segments.
4436 * So the caller can mannipulate sg list as will when padding new data after
4556 * OK, link new skb, drop old one */
5669 * skb_eth_push() - Add a new Ethernet header at the head of a packet
5672 * @dst: Destination MAC address of the new header
5673 * @src: Source MAC address of the new header
5675 * Prepend @skb with a new Ethernet header.
5723 * skb_mpls_push() - push a new MPLS header after mac_len bytes from start of
5728 * @mpls_proto: ethertype of the new MPLS header (expects 0x8847 or 0x8848)
5827 * @mpls_lse: new MPLS label stack entry to update to
6073 /* And insert new clone at head. */
6180 * a new skb
6238 * __skb_ext_alloc - allocate a new skb extensions storage
6248 struct skb_ext *new = kmem_cache_alloc(skbuff_ext_cache, flags);
6250 if (new) {
6251 memset(new->offset, 0, sizeof(new->offset));
6252 refcount_set(&new->refcnt, 1);
6255 return new;
6261 struct skb_ext *new;
6266 new = kmem_cache_alloc(skbuff_ext_cache, GFP_ATOMIC);
6267 if (!new)
6270 memcpy(new, old, old->chunks * SKB_EXT_ALIGN_VALUE);
6271 refcount_set(&new->refcnt, 1);
6283 return new;
6326 struct skb_ext *new, *old = NULL;
6332 new = skb_ext_maybe_cow(old, skb->active_extensions);
6333 if (!new)
6336 if (__skb_ext_exist(new, id))
6339 newoff = new->chunks;
6341 newoff = SKB_EXT_CHUNKSIZEOF(*new);
6343 new = __skb_ext_alloc(GFP_ATOMIC);
6344 if (!new)
6349 new->chunks = newlen;
6350 new->offset[id] = newoff;
6352 skb->extensions = new;
6354 return skb_ext_get_ptr(new, id);