]> git.baikalelectronics.ru Git - kernel.git/commit
net: Increase default NET_SKB_PAD to 32.
authorDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2009 03:24:13 +0000 (19:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2009 03:24:13 +0000 (19:24 -0800)
commitdaabe2a5760226aeb4ad1a9eb2f6669ba0b422e4
treed4e329fc83fd47331be454b916e4bf770c5371c4
parent2cdfadb42b001b0aa2b6c7fa1e694039564f8db6
net: Increase default NET_SKB_PAD to 32.

Several devices need to insert some "pre headers" in front of the
main packet data when they transmit a packet.

Currently we allocate only 16 bytes of pad room and this ends up not
being enough for some types of hardware (NIU, usb-net, s390 qeth,
etc.)

So increase this to 32.

Note that drivers still need to check in their transmit routine
whether enough headroom exists, and if not use skb_realloc_headroom().
Tunneling, IPSEC, and other encapsulation methods can cause the
padding area to be used up.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h