diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2019-01-23 19:14:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-24 22:18:48 -0800 |
commit | 949e7cea0cbccd7e2afc4b374e2be998b8fcef78 (patch) | |
tree | ddd52d1d246a442b18ff46d9099ec7b69cfb97c1 /include/net/bond_3ad.h | |
parent | 2ab64da68c2b4aaf2996db66f07c8df6d7b97f36 (diff) | |
download | blackbird-op-linux-949e7cea0cbccd7e2afc4b374e2be998b8fcef78.tar.gz blackbird-op-linux-949e7cea0cbccd7e2afc4b374e2be998b8fcef78.zip |
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>
Diffstat (limited to 'include/net/bond_3ad.h')
-rw-r--r-- | include/net/bond_3ad.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bond_3ad.h b/include/net/bond_3ad.h index 25aaf49d19be..c781e1afd683 100644 --- a/include/net/bond_3ad.h +++ b/include/net/bond_3ad.h @@ -278,6 +278,7 @@ struct ad_system { struct ad_bond_info { struct ad_system system; /* 802.3ad system structure */ + struct bond_3ad_stats stats; u32 agg_select_timer; /* Timer to select aggregator after all adapter's hand shakes */ u16 aggregator_identifier; }; @@ -321,7 +322,6 @@ int bond_3ad_lacpdu_recv(const struct sk_buff *skb, struct bonding *bond, int bond_3ad_set_carrier(struct bonding *bond); void bond_3ad_update_lacp_rate(struct bonding *bond); void bond_3ad_update_ad_actor_settings(struct bonding *bond); -void bond_3ad_stats_add(struct slave *slave, struct bond_3ad_stats *stats); int bond_3ad_stats_fill(struct sk_buff *skb, struct bond_3ad_stats *stats); size_t bond_3ad_stats_size(void); #endif /* _NET_BOND_3AD_H */ |