ixgb: Use the instance of net_device_stats from net_device.
Subsystems (2)
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.
Signed-off-by Ajit Khaparde <[email protected]>
--- 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
@@ -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
Quoted 10 lines · Ajit Khaparde
Since
net_devicehas an instance ofnet_device_stats,
we can remove the instance of this from the private adapter structure.Signed-off-by Ajit Khaparde <[email protected]>---
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