diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-10-27 16:53:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-28 09:20:32 +0100 |
commit | e694e964fc1241b4981873bdccce70438d5f0394 (patch) | |
tree | 5073282de0459052a9647ba247763c143d23ffc3 /drivers/net/igb/igb.h | |
parent | igb: add a flags value to the ring (diff) | |
download | linux-e694e964fc1241b4981873bdccce70438d5f0394.tar.xz linux-e694e964fc1241b4981873bdccce70438d5f0394.zip |
igb: place a pointer to the netdev struct in the ring itself
This change adds a pointer to the netdev to the ring itself. The idea being
at some point in the future it will be possible to support multiple netdevs
from a single adapter struct.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/igb.h')
-rw-r--r-- | drivers/net/igb/igb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/igb/igb.h b/drivers/net/igb/igb.h index 0c30c5e375c7..2416c12af3fe 100644 --- a/drivers/net/igb/igb.h +++ b/drivers/net/igb/igb.h @@ -175,9 +175,10 @@ struct igb_q_vector { struct igb_ring { struct igb_q_vector *q_vector; /* backlink to q_vector */ - void *desc; /* descriptor ring memory */ + struct net_device *netdev; /* back pointer to net_device */ struct pci_dev *pdev; /* pci device for dma mapping */ dma_addr_t dma; /* phys address of the ring */ + void *desc; /* descriptor ring memory */ unsigned int size; /* length of desc. ring in bytes */ unsigned int count; /* number of desc. in the ring */ u16 next_to_use; |