aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-11-24 03:31:49 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-24 14:06:18 -0500
commit07ae8fc00bcc97d2f896b257da225a0789b0aa5d (patch)
tree761ca8cc8631dc83a1d7af499096642a29bd2f23 /drivers/net/tg3.h
parentcf79003d598b1f82a4caa0564107283b4f560e14 (diff)
tg3: Reorg tg3_napi members
This patch reorders and realigns the tg3_napi members for a ~3-4% performance improvement on small packet performance tests. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 410703684e39..2938d18d12f7 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -2715,17 +2715,17 @@ struct tg3_napi {
2715 u32 last_irq_tag; 2715 u32 last_irq_tag;
2716 u32 int_mbox; 2716 u32 int_mbox;
2717 u32 coal_now; 2717 u32 coal_now;
2718 u32 tx_prod;
2719 u32 tx_cons;
2720 u32 tx_pending;
2721 u32 prodmbox;
2722 2718
2723 u32 consmbox; 2719 u32 consmbox ____cacheline_aligned;
2724 u32 rx_rcb_ptr; 2720 u32 rx_rcb_ptr;
2725 u16 *rx_rcb_prod_idx; 2721 u16 *rx_rcb_prod_idx;
2726 struct tg3_rx_prodring_set prodring; 2722 struct tg3_rx_prodring_set prodring;
2727
2728 struct tg3_rx_buffer_desc *rx_rcb; 2723 struct tg3_rx_buffer_desc *rx_rcb;
2724
2725 u32 tx_prod ____cacheline_aligned;
2726 u32 tx_cons;
2727 u32 tx_pending;
2728 u32 prodmbox;
2729 struct tg3_tx_buffer_desc *tx_ring; 2729 struct tg3_tx_buffer_desc *tx_ring;
2730 struct ring_info *tx_buffers; 2730 struct ring_info *tx_buffers;
2731 2731