Commit 35cfabdc authored by Ajit Khaparde's avatar Ajit Khaparde Committed by David S. Miller

bonding: Remove net_device_stats from bonding struct

There is no need to maintain stats in the bonding structure.
Use the instance of net_device_stats in netdevice.
Signed-off-by: default avatarAjit Khaparde <ajitk@serverengines.com>
Signed-off-by: default avatarJay Vosburgh <fubar@us.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 235ecb1d
...@@ -3742,7 +3742,7 @@ static int bond_close(struct net_device *bond_dev) ...@@ -3742,7 +3742,7 @@ static int bond_close(struct net_device *bond_dev)
static struct net_device_stats *bond_get_stats(struct net_device *bond_dev) static struct net_device_stats *bond_get_stats(struct net_device *bond_dev)
{ {
struct bonding *bond = netdev_priv(bond_dev); struct bonding *bond = netdev_priv(bond_dev);
struct net_device_stats *stats = &bond->stats; struct net_device_stats *stats = &bond_dev->stats;
struct net_device_stats local_stats; struct net_device_stats local_stats;
struct slave *slave; struct slave *slave;
int i; int i;
......
...@@ -197,7 +197,6 @@ struct bonding { ...@@ -197,7 +197,6 @@ struct bonding {
s8 send_grat_arp; s8 send_grat_arp;
s8 send_unsol_na; s8 send_unsol_na;
s8 setup_by_slave; s8 setup_by_slave;
struct net_device_stats stats;
#ifdef CONFIG_PROC_FS #ifdef CONFIG_PROC_FS
struct proc_dir_entry *proc_entry; struct proc_dir_entry *proc_entry;
char proc_file_name[IFNAMSIZ]; char proc_file_name[IFNAMSIZ];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment