linux/drivers/net/ixgb
Eric Dumazet 042a53a9e4 net: skb_shared_info optimization
skb_dma_unmap() is quite expensive for small packets,
because we use two different cache lines from skb_shared_info.

One to access nr_frags, one to access dma_maps[0]

Instead of dma_maps being an array of MAX_SKB_FRAGS + 1 elements,
let dma_head alone in a new dma_head field, close to nr_frags,
to reduce cache lines misses.

Tested on my dev machine (bnx2 & tg3 adapters), nice speedup !

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-06-08 00:21:48 -07:00
..
ixgb_ee.c ixgb: update copyright dates and versions 2008-07-11 01:20:31 -04:00
ixgb_ee.h ixgb: update copyright dates and versions 2008-07-11 01:20:31 -04:00
ixgb_ethtool.c ixgb: update copyright dates and versions 2008-07-11 01:20:31 -04:00
ixgb_hw.c ixgb: Use generic MDIO definitions 2009-04-29 17:32:33 -07:00
ixgb_hw.h ixgb: Use generic MDIO definitions 2009-04-29 17:32:33 -07:00
ixgb_ids.h ixgb: update copyright dates and versions 2008-07-11 01:20:31 -04:00
ixgb_main.c net: skb_shared_info optimization 2009-06-08 00:21:48 -07:00
ixgb_osdep.h drivers/net: replace BUG() with BUG_ON() if possible 2009-04-13 15:44:36 -07:00
ixgb_param.c ixgb: update copyright dates and versions 2008-07-11 01:20:31 -04:00
ixgb.h drivers/net: replace __FUNCTION__ with __func__ 2008-09-24 18:59:00 -04:00
Makefile ixgb: update copyright dates and versions 2008-07-11 01:20:31 -04:00