tg3: Move general int members to a per-int struct
This patch moves the last_tag, last_tag_irq, and hw_status device members to a per-interrupt structure. It also adds a new interrupt mailbox member (int_mbox) and converts the code to use it rather than a direct preprocessor constant. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
17375d25d3
commit
898a56f8d8
@ -2492,6 +2492,13 @@ struct tg3_rx_prodring_set {
|
||||
struct tg3_napi {
|
||||
struct napi_struct napi ____cacheline_aligned;
|
||||
struct tg3 *tp;
|
||||
struct tg3_hw_status *hw_status;
|
||||
|
||||
u32 last_tag;
|
||||
u32 last_irq_tag;
|
||||
u32 int_mbox;
|
||||
|
||||
dma_addr_t status_mapping;
|
||||
};
|
||||
|
||||
struct tg3 {
|
||||
@ -2546,11 +2553,6 @@ struct tg3 {
|
||||
struct net_device *dev;
|
||||
struct pci_dev *pdev;
|
||||
|
||||
struct tg3_hw_status *hw_status;
|
||||
dma_addr_t status_mapping;
|
||||
u32 last_tag;
|
||||
u32 last_irq_tag;
|
||||
|
||||
u32 msg_enable;
|
||||
|
||||
/* begin "tx thread" cacheline section */
|
||||
|
Reference in New Issue
Block a user