diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2009-11-13 08:03:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-16 01:14:54 -0500 |
commit | b196c7e45f30cbcd38c83386bc8a04a21477f8d3 (patch) | |
tree | 97bdf9375a9a2b7c400204587a85515bd90c8a37 /drivers/net/tg3.h | |
parent | 66711e66639776685aeaad774488be1857abce26 (diff) |
tg3: Add rx prod ring consolidation
This patch adds code to funnel each MSI-X vector's rx packet buffers
into a single set of producer rings which will then be submitted to the
hardware.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index bbfbc5e5d608..6be46abb1321 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -2575,7 +2575,9 @@ struct tg3_ethtool_stats { | |||
2575 | 2575 | ||
2576 | struct tg3_rx_prodring_set { | 2576 | struct tg3_rx_prodring_set { |
2577 | u32 rx_std_prod_idx; | 2577 | u32 rx_std_prod_idx; |
2578 | u32 rx_std_cons_idx; | ||
2578 | u32 rx_jmb_prod_idx; | 2579 | u32 rx_jmb_prod_idx; |
2580 | u32 rx_jmb_cons_idx; | ||
2579 | struct tg3_rx_buffer_desc *rx_std; | 2581 | struct tg3_rx_buffer_desc *rx_std; |
2580 | struct tg3_ext_rx_buffer_desc *rx_jmb; | 2582 | struct tg3_ext_rx_buffer_desc *rx_jmb; |
2581 | struct ring_info *rx_std_buffers; | 2583 | struct ring_info *rx_std_buffers; |
@@ -2603,6 +2605,7 @@ struct tg3_napi { | |||
2603 | u32 consmbox; | 2605 | u32 consmbox; |
2604 | u32 rx_rcb_ptr; | 2606 | u32 rx_rcb_ptr; |
2605 | u16 *rx_rcb_prod_idx; | 2607 | u16 *rx_rcb_prod_idx; |
2608 | struct tg3_rx_prodring_set *prodring; | ||
2606 | 2609 | ||
2607 | struct tg3_rx_buffer_desc *rx_rcb; | 2610 | struct tg3_rx_buffer_desc *rx_rcb; |
2608 | struct tg3_tx_buffer_desc *tx_ring; | 2611 | struct tg3_tx_buffer_desc *tx_ring; |