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: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: Jay Vosburgh <fubar@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
235ecb1db0
commit
35cfabdc5e
@@ -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;
|
||||
|
Reference in New Issue
Block a user