OSDN Git Service

bnx2: switch to build_skb() infrastructure
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 15 Nov 2011 07:30:05 +0000 (07:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2011 07:04:47 +0000 (02:04 -0500)
commitdd2bc8e9c0685d8eaaaf06e65919e31d60478411
tree228e68ebf3f4f8012be3f8c48a4172c9201d59dd
parentadc9300e78e6091a7eaa1821213836379d4dbaa8
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.

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>
drivers/net/ethernet/broadcom/bnx2.c
drivers/net/ethernet/broadcom/bnx2.h