aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2010-09-15 04:59:57 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-15 17:16:13 -0400
commit6fd45cb814709767a1704b541aa91647b7f275cf (patch)
tree1d6ee9a9b703ba22713f239cf0da35b3e6f5ad69 /drivers/net/tg3.h
parent2e9f7a7408d264f01d4477c564ef5c6b610cd10f (diff)
tg3: Clarify semantics of TG3_IRQ_MAX_VECS
TG3_IRQ_MAX_VECS should be seen as the maximum number of vectors that any device could be expected to use. tp->irq_max represents the maximum number of vectors the current device can use. This patch clarifies the semantics of the code to match the above description. 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 5cd0653d6caf..d39426fc8a6e 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -2659,7 +2659,8 @@ struct tg3_rx_prodring_set {
2659 dma_addr_t rx_jmb_mapping; 2659 dma_addr_t rx_jmb_mapping;
2660}; 2660};
2661 2661
2662#define TG3_IRQ_MAX_VECS 5 2662#define TG3_IRQ_MAX_VECS_RSS 5
2663#define TG3_IRQ_MAX_VECS TG3_IRQ_MAX_VECS_RSS
2663 2664
2664struct tg3_napi { 2665struct tg3_napi {
2665 struct napi_struct napi ____cacheline_aligned; 2666 struct napi_struct napi ____cacheline_aligned;