]> 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)
commit48e5a0b648def3acd9a011d07ba788003a0aa15e
treeddd52d1d246a442b18ff46d9099ec7b69cfb97c1
parentef9a7145bdef8ddd85cef512ef93e3349c36253d
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: 88c5429b7c61 ("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