diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2009-08-28 10:01:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-29 18:42:56 -0400 |
commit | 8ef0442f98850333196bc56415192e52a6267878 (patch) | |
tree | 5ba3ec9ed6ef805ecec9073906017e233063aa2e /drivers/net/tg3.h | |
parent | 07b0173cb5d6a9d77646cd855066ebe90b9203f2 (diff) |
tg3: Move napi to per-int struct
This patch creates a per-interrupt data structure, moves the napi
member over, and creates a tg3 pointer back to the device structure.
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 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index 982171f293fd..aff3f046c907 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -2487,6 +2487,13 @@ struct tg3_rx_prodring_set { | |||
2487 | dma_addr_t rx_jmb_mapping; | 2487 | dma_addr_t rx_jmb_mapping; |
2488 | }; | 2488 | }; |
2489 | 2489 | ||
2490 | #define TG3_IRQ_MAX_VECS 1 | ||
2491 | |||
2492 | struct tg3_napi { | ||
2493 | struct napi_struct napi ____cacheline_aligned; | ||
2494 | struct tg3 *tp; | ||
2495 | }; | ||
2496 | |||
2490 | struct tg3 { | 2497 | struct tg3 { |
2491 | /* begin "general, frequently-used members" cacheline section */ | 2498 | /* begin "general, frequently-used members" cacheline section */ |
2492 | 2499 | ||
@@ -2558,7 +2565,7 @@ struct tg3 { | |||
2558 | dma_addr_t tx_desc_mapping; | 2565 | dma_addr_t tx_desc_mapping; |
2559 | 2566 | ||
2560 | /* begin "rx thread" cacheline section */ | 2567 | /* begin "rx thread" cacheline section */ |
2561 | struct napi_struct napi; | 2568 | struct tg3_napi napi[TG3_IRQ_MAX_VECS]; |
2562 | void (*write32_rx_mbox) (struct tg3 *, u32, | 2569 | void (*write32_rx_mbox) (struct tg3 *, u32, |
2563 | u32); | 2570 | u32); |
2564 | u32 rx_rcb_ptr; | 2571 | u32 rx_rcb_ptr; |