]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2: switch to build_skb() infrastructure
authorJoe Jin <joe.jin@oracle.com>
Mon, 27 Aug 2012 07:40:07 +0000 (15:40 +0800)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:23:11 +0000 (15:23 +0800)
commit0691e3506ebb4d0544a4f4b629dbbcab55711a99
treeca3dd137b3a727347cda34ea181af82299b70c8b
parent848b8aebf4398133cceffff13ff35e4a267391ac
bnx2: switch to build_skb() infrastructure

This is very similar to bnx2x conversion, but bnx2 only requires 16bytes
alignement at start of the received frame to store its l2_fhdr, so goal
was not to reduce skb truesize (in fact it should not change after this
patch)

Using build_skb() reduces cache line misses in the driver, since we
use cache hot skb instead of cold ones. Number of in-flight sk_buff
structures is lower, they are more likely recycled in SLUB caches
while still hot.

(backported from upstream commit dd2bc8e9c0685d8eaaaf06e65919e31d60478411)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Michael Chan <mchan@broadcom.com>
CC: Eilon Greenstein <eilong@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2.c
drivers/net/bnx2.h