diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2012-05-11 08:33:16 +0000 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2012-07-18 13:14:36 -0700 |
commit | fb40195cc975b14c5d4e44863ea996f999ba5aee (patch) | |
tree | 32461803025c3827a3bfaf73cc6f88073d305da0 /drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | |
parent | 18c6308971028cc02838adc711c556d992ad8bdf (diff) | |
download | linux-fb40195cc975b14c5d4e44863ea996f999ba5aee.tar.gz linux-fb40195cc975b14c5d4e44863ea996f999ba5aee.tar.bz2 linux-fb40195cc975b14c5d4e44863ea996f999ba5aee.zip |
ixgbevf: Add netdev to ring structure
This change adds the netdev to the ring structure. This allows for a
quicker transition from ring to netdev without having to go from ring to
adapter to netdev.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/ixgbevf.h')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h index 1f1376515f70..e167d1bb6dea 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf.h @@ -56,6 +56,8 @@ struct ixgbevf_rx_buffer { struct ixgbevf_ring { struct ixgbevf_ring *next; + struct net_device *netdev; + struct device *dev; struct ixgbevf_adapter *adapter; /* backlink */ void *desc; /* descriptor ring memory */ dma_addr_t dma; /* phys. address of descriptor ring */ |