Commit 898a56f8 authored by Matt Carlson's avatar Matt Carlson Committed by David S. Miller

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: default avatarMatt Carlson <mcarlson@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 17375d25
This diff is collapsed.
...@@ -2492,6 +2492,13 @@ struct tg3_rx_prodring_set { ...@@ -2492,6 +2492,13 @@ struct tg3_rx_prodring_set {
struct tg3_napi { struct tg3_napi {
struct napi_struct napi ____cacheline_aligned; struct napi_struct napi ____cacheline_aligned;
struct tg3 *tp; 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 { struct tg3 {
...@@ -2546,11 +2553,6 @@ struct tg3 { ...@@ -2546,11 +2553,6 @@ struct tg3 {
struct net_device *dev; struct net_device *dev;
struct pci_dev *pdev; 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; u32 msg_enable;
/* begin "tx thread" cacheline section */ /* begin "tx thread" cacheline section */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment