aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-10-27 11:53:06 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-28 04:20:32 -0400
commite694e964fc1241b4981873bdccce70438d5f0394 (patch)
tree5073282de0459052a9647ba247763c143d23ffc3 /drivers/net/igb/igb.h
parent85ad76b2f9c4956ec90c86298b22bb35c326e772 (diff)
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.h3
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 {
175 175
176struct igb_ring { 176struct igb_ring {
177 struct igb_q_vector *q_vector; /* backlink to q_vector */ 177 struct igb_q_vector *q_vector; /* backlink to q_vector */
178 void *desc; /* descriptor ring memory */ 178 struct net_device *netdev; /* back pointer to net_device */
179 struct pci_dev *pdev; /* pci device for dma mapping */ 179 struct pci_dev *pdev; /* pci device for dma mapping */
180 dma_addr_t dma; /* phys address of the ring */ 180 dma_addr_t dma; /* phys address of the ring */
181 void *desc; /* descriptor ring memory */
181 unsigned int size; /* length of desc. ring in bytes */ 182 unsigned int size; /* length of desc. ring in bytes */
182 unsigned int count; /* number of desc. in the ring */ 183 unsigned int count; /* number of desc. in the ring */
183 u16 next_to_use; 184 u16 next_to_use;