]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: allocate more headroom in incoming skbs
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 25 Jan 2012 03:56:30 +0000 (03:56 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 7 May 2012 21:44:14 +0000 (14:44 -0700)
commit59c5ea421cb8c2c07c49eee1838a3a4d754c290d
tree1a8a8ddd1bfb13171a821b76c82c45e29242ecd2
parentb2961575360aae015a113f92052b1db1a80a4929
be2net: allocate more headroom in incoming skbs

Allocation of 64 bytes in skb headroom is not enough if we have to pull
ethernet + ipv6 + tcp headers, and/or extra tunneling header.

Its currently not noticed because netdev_alloc_skb_ip_align(64) give us
more room, thanks to power-of-two kmalloc() roundups.

Make sure we ask for 128 bytes so that side effects of upcoming patches
from Ian Campbell dont decrease benet rx performance, because of extra
skb head reallocations.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Vasundhara Volam <vasundhara.volam@emulex.com>
Cc: Sathya Perla <sathya.perla@emulex.com>
Cc: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be.h
drivers/net/benet/be_main.c