]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: count master 3ad stats separately
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 23 Jan 2019 17:14:50 +0000 (19:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jan 2019 06:18:48 +0000 (22:18 -0800)
commitaae47d696a34ea9be417cc2eaf1344e1b595a28e
treeddd52d1d246a442b18ff46d9099ec7b69cfb97c1
parent00e6d98b7d2175250403eaa278e72d2f863167c4
bonding: count master 3ad stats separately

I made a dumb mistake when I summed up the slave stats, obviously slaves
can come and go which would make the master stats unreliable.
Count and export the master stats separately.

Fixes: 69b5c4af8677 ("bonding: add support for xstats and export 3ad stats")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_netlink.c
include/net/bond_3ad.h