Eric Dumazet 87151b8689 net: allow pskb_expand_head() to get maximum tailroom
Marc Merlin reported many order-1 allocations failures in TX path on its
wireless setup, that dont make any sense with MTU=1500 network, and non
SG capable hardware.

Turns out part of the problem comes from pskb_expand_head() not using
ksize() to get exact head size given by kmalloc(). Doing the same thing
than __alloc_skb() allows more tailroom in skb and can prevent future
reallocations.

As a bonus, struct skb_shared_info becomes cache line aligned.

Reported-by: Marc MERLIN <marc@merlins.org>
Tested-by: Marc MERLIN <marc@merlins.org>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-04-11 10:10:43 -04:00
..
2012-04-03 17:23:23 -04:00
2012-02-24 01:42:07 -08:00
2010-07-12 12:57:55 -07:00
2012-01-26 13:36:19 -05:00
2010-11-28 18:24:14 -08:00
2012-03-28 18:30:03 +01:00
2012-01-17 10:31:12 -05:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00