Skip to contentSkip to conversation

ixgb: Use the instance of net_device_stats from net_device.

PATCH In review Ajit Khaparde 2 participants 2 messages Oct 7, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ixgb: Use the instance of net_device_stats from net_device.

Since net_device has an instance of net_device_stats,
we can remove the instance of this from the private adapter structure.

---
 drivers/net/ixgb/ixgb.h         |    1 -
 drivers/net/ixgb/ixgb_ethtool.c |   44 ++++++++++++++++++++------------------
 drivers/net/ixgb/ixgb_main.c    |   44 ++++++++++++++++++--------------------
 3 files changed, 44 insertions(+), 45 deletions(-)
drivers/net/ixgb/ixgb.h +0 -1
index d85717e..e95d9b6 100644
@@ -183,7 +183,6 @@ struct ixgb_adapter {
 	struct napi_struct napi;
 	struct net_device *netdev;
 	struct pci_dev *pdev;
-	struct net_device_stats net_stats;
 
 	/* structs defined in ixgb_hw.h */
 	struct ixgb_hw hw;
drivers/net/ixgb/ixgb_ethtool.c +24 -22

54 lines not on this page · raw message

drivers/net/ixgb/ixgb_main.c +21 -23

67 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#1 lore raw
Quoted 10 lines · Ajit Khaparde

Since net_device has an instance of net_device_stats,
we can remove the instance of this from the private adapter structure.

---
 drivers/net/ixgb/ixgb.h         |    1 - drivers/net/ixgb/ixgb_ethtool.c |   44 ++++++++++++++++++++------------------ drivers/net/ixgb/ixgb_main.c    |   44 ++++++++++++++++++--------------------

 3 files changed, 44 insertions(+), 45 deletions(-)

I have added this patch to my tree for testing purposes, thanks.

Signature · 2 lines
Cheers,
Jeff