aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/skbuff.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 08670d017479..5eba4007e07f 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1287,7 +1287,7 @@ static inline int skb_network_offset(const struct sk_buff *skb)
1287 * The networking layer reserves some headroom in skb data (via 1287 * The networking layer reserves some headroom in skb data (via
1288 * dev_alloc_skb). This is used to avoid having to reallocate skb data when 1288 * dev_alloc_skb). This is used to avoid having to reallocate skb data when
1289 * the header has to grow. In the default case, if the header has to grow 1289 * the header has to grow. In the default case, if the header has to grow
1290 * 16 bytes or less we avoid the reallocation. 1290 * 32 bytes or less we avoid the reallocation.
1291 * 1291 *
1292 * Unfortunately this headroom changes the DMA alignment of the resulting 1292 * Unfortunately this headroom changes the DMA alignment of the resulting
1293 * network packet. As for NET_IP_ALIGN, this unaligned DMA is expensive 1293 * network packet. As for NET_IP_ALIGN, this unaligned DMA is expensive
@@ -1295,11 +1295,11 @@ static inline int skb_network_offset(const struct sk_buff *skb)
1295 * perhaps setting it to a cacheline in size (since that will maintain 1295 * perhaps setting it to a cacheline in size (since that will maintain
1296 * cacheline alignment of the DMA). It must be a power of 2. 1296 * cacheline alignment of the DMA). It must be a power of 2.
1297 * 1297 *
1298 * Various parts of the networking layer expect at least 16 bytes of 1298 * Various parts of the networking layer expect at least 32 bytes of
1299 * headroom, you should not reduce this. 1299 * headroom, you should not reduce this.
1300 */ 1300 */
1301#ifndef NET_SKB_PAD 1301#ifndef NET_SKB_PAD
1302#define NET_SKB_PAD 16 1302#define NET_SKB_PAD 32
1303#endif 1303#endif
1304 1304
1305extern int ___pskb_trim(struct sk_buff *skb, unsigned int len); 1305extern int ___pskb_trim(struct sk_buff *skb, unsigned int len);