diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2010-09-15 04:59:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-15 17:16:13 -0400 |
commit | 8fea32b9555726d35b91492d17fc21c7874d36f9 (patch) | |
tree | d7bdab4fa4020eaa483761fc8271a3a03121fc13 /drivers/net/tg3.h | |
parent | 6fd45cb814709767a1704b541aa91647b7f275cf (diff) |
tg3: Move producer ring struct to tg3_napi
Now that each NAPI instance has its own producer ring, it no longer
makes sense to keep the producer ring structure external. This patch
migrates the producer ring struct to tg3_napi and pivots the code to the
new implementation.
Reviewed-by: Benjamin Li <benli@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Matt Carlson <mcarlson@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 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index d39426fc8a6e..44733e4a68a2 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -2679,7 +2679,7 @@ struct tg3_napi { | |||
2679 | u32 consmbox; | 2679 | u32 consmbox; |
2680 | u32 rx_rcb_ptr; | 2680 | u32 rx_rcb_ptr; |
2681 | u16 *rx_rcb_prod_idx; | 2681 | u16 *rx_rcb_prod_idx; |
2682 | struct tg3_rx_prodring_set *prodring; | 2682 | struct tg3_rx_prodring_set prodring; |
2683 | 2683 | ||
2684 | struct tg3_rx_buffer_desc *rx_rcb; | 2684 | struct tg3_rx_buffer_desc *rx_rcb; |
2685 | struct tg3_tx_buffer_desc *tx_ring; | 2685 | struct tg3_tx_buffer_desc *tx_ring; |
@@ -2766,8 +2766,6 @@ struct tg3 { | |||
2766 | struct vlan_group *vlgrp; | 2766 | struct vlan_group *vlgrp; |
2767 | #endif | 2767 | #endif |
2768 | 2768 | ||
2769 | struct tg3_rx_prodring_set prodring[TG3_IRQ_MAX_VECS]; | ||
2770 | |||
2771 | 2769 | ||
2772 | /* begin "everything else" cacheline(s) section */ | 2770 | /* begin "everything else" cacheline(s) section */ |
2773 | struct rtnl_link_stats64 net_stats; | 2771 | struct rtnl_link_stats64 net_stats; |