Commit 07ae8fc0 authored by Matt Carlson's avatar Matt Carlson Committed by David S. Miller

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: default avatarMatt Carlson <mcarlson@broadcom.com>
Reviewed-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cf79003d
...@@ -2715,17 +2715,17 @@ struct tg3_napi { ...@@ -2715,17 +2715,17 @@ struct tg3_napi {
u32 last_irq_tag; u32 last_irq_tag;
u32 int_mbox; u32 int_mbox;
u32 coal_now; u32 coal_now;
u32 tx_prod;
u32 tx_cons;
u32 tx_pending;
u32 prodmbox;
u32 consmbox; u32 consmbox ____cacheline_aligned;
u32 rx_rcb_ptr; u32 rx_rcb_ptr;
u16 *rx_rcb_prod_idx; u16 *rx_rcb_prod_idx;
struct tg3_rx_prodring_set prodring; struct tg3_rx_prodring_set prodring;
struct tg3_rx_buffer_desc *rx_rcb; struct tg3_rx_buffer_desc *rx_rcb;
u32 tx_prod ____cacheline_aligned;
u32 tx_cons;
u32 tx_pending;
u32 prodmbox;
struct tg3_tx_buffer_desc *tx_ring; struct tg3_tx_buffer_desc *tx_ring;
struct ring_info *tx_buffers; struct ring_info *tx_buffers;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment