OSDN Git Service

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)
commit949e7cea0cbccd7e2afc4b374e2be998b8fcef78
treeddd52d1d246a442b18ff46d9099ec7b69cfb97c1
parent2ab64da68c2b4aaf2996db66f07c8df6d7b97f36
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: a258aeacd7f0 ("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