bonding: Remove net_device_stats from bonding struct
authorAjit Khaparde <ajitkhaparde@gmail.com>
Mon, 1 Feb 2010 14:06:52 +0000 (14:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 04:32:27 +0000 (20:32 -0800)
There is no need to maintain stats in the bonding structure.
Use the instance of net_device_stats in netdevice.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/bonding/bonding.h

index 6221936e957a0803d4272c773793026823b59e61..1787e3c8657390ef6180d6d6c218ce679f9465b7 100644 (file)
@@ -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)
 {
        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 slave *slave;
        int i;
index 558ec1352527a5d9f4357bc41db29c4cba5fd68f..257a7a4dfce98b93f7d04130d21e98f3173c1ab2 100644 (file)
@@ -197,7 +197,6 @@ struct bonding {
        s8       send_grat_arp;
        s8       send_unsol_na;
        s8       setup_by_slave;
-       struct   net_device_stats stats;
 #ifdef CONFIG_PROC_FS
        struct   proc_dir_entry *proc_entry;
        char     proc_file_name[IFNAMSIZ];