skbuff.h (376c7311bdb6efea3322310333576a04d73fbe4c) | skbuff.h (e0d1095ae3405404d247afb00233ef837d58da83) |
---|---|
1/* 2 * Definitions for the 'struct sk_buff' memory handlers. 3 * 4 * Authors: 5 * Alan Cox, <gw4pts@gw4pts.ampr.org> 6 * Florian La Roche, <rzsfl@rz.uni-sb.de> 7 * 8 * This program is free software; you can redistribute it and/or --- 487 unchanged lines hidden (view full) --- 496 * this flag to indicate to each other if the skb contains 497 * encapsulated packet or not and maybe use the inner packet 498 * headers if needed 499 */ 500 __u8 encapsulation:1; 501 /* 7/9 bit hole (depending on ndisc_nodetype presence) */ 502 kmemcheck_bitfield_end(flags2); 503 | 1/* 2 * Definitions for the 'struct sk_buff' memory handlers. 3 * 4 * Authors: 5 * Alan Cox, <gw4pts@gw4pts.ampr.org> 6 * Florian La Roche, <rzsfl@rz.uni-sb.de> 7 * 8 * This program is free software; you can redistribute it and/or --- 487 unchanged lines hidden (view full) --- 496 * this flag to indicate to each other if the skb contains 497 * encapsulated packet or not and maybe use the inner packet 498 * headers if needed 499 */ 500 __u8 encapsulation:1; 501 /* 7/9 bit hole (depending on ndisc_nodetype presence) */ 502 kmemcheck_bitfield_end(flags2); 503 |
504#if defined CONFIG_NET_DMA || defined CONFIG_NET_LL_RX_POLL | 504#if defined CONFIG_NET_DMA || defined CONFIG_NET_RX_BUSY_POLL |
505 union { 506 unsigned int napi_id; 507 dma_cookie_t dma_cookie; 508 }; 509#endif 510#ifdef CONFIG_NETWORK_SECMARK 511 __u32 secmark; 512#endif --- 1287 unchanged lines hidden (view full) --- 1800 * @skb: buffer to orphan 1801 * 1802 * If a buffer currently has an owner then we call the owner's 1803 * destructor function and make the @skb unowned. The buffer continues 1804 * to exist but is no longer charged to its former owner. 1805 */ 1806static inline void skb_orphan(struct sk_buff *skb) 1807{ | 505 union { 506 unsigned int napi_id; 507 dma_cookie_t dma_cookie; 508 }; 509#endif 510#ifdef CONFIG_NETWORK_SECMARK 511 __u32 secmark; 512#endif --- 1287 unchanged lines hidden (view full) --- 1800 * @skb: buffer to orphan 1801 * 1802 * If a buffer currently has an owner then we call the owner's 1803 * destructor function and make the @skb unowned. The buffer continues 1804 * to exist but is no longer charged to its former owner. 1805 */ 1806static inline void skb_orphan(struct sk_buff *skb) 1807{ |
1808 if (skb->destructor) { | 1808 if (skb->destructor) |
1809 skb->destructor(skb); | 1809 skb->destructor(skb); |
1810 skb->destructor = NULL; 1811 skb->sk = NULL; 1812 } else { 1813 BUG_ON(skb->sk); 1814 } | 1810 skb->destructor = NULL; 1811 skb->sk = NULL; |
1815} 1816 1817/** 1818 * skb_orphan_frags - orphan the frags contained in a buffer 1819 * @skb: buffer to orphan frags from 1820 * @gfp_mask: allocation mask for replacement pages 1821 * 1822 * For each frag in the SKB which needs a destructor (i.e. has an --- 1021 unchanged lines hidden --- | 1812} 1813 1814/** 1815 * skb_orphan_frags - orphan the frags contained in a buffer 1816 * @skb: buffer to orphan frags from 1817 * @gfp_mask: allocation mask for replacement pages 1818 * 1819 * For each frag in the SKB which needs a destructor (i.e. has an --- 1021 unchanged lines hidden --- |