Hi, This set adds support for counting some 3ad-specific packet types and exports the new stats via the xstats API. atomic64 counters are used since these are not fastpaths and we can avoid the per-cpu allocations. Each 3ad counter is exported as a separate attribute to be easily extensible since we plan to add more later. The stats are per-slave and when the master stats are requested the slaves' stats are summed up. Patches 01 and 02 do minor cleanups in preparation for the new stats API. Patch 03 adds the new stats and patch 04 adds xstats support to export them.
Thanks, Nik Nikolay Aleksandrov (4): bonding: adjust style of bond_3ad_rx_indication bonding: 3ad: remove bond_3ad_rx_indication's length argument bonding: add 3ad stats bonding: add support for xstats and export 3ad stats drivers/net/bonding/bond_3ad.c | 201 ++++++++++++++++++++++------- drivers/net/bonding/bond_netlink.c | 71 ++++++++++ include/net/bond_3ad.h | 17 +++ include/uapi/linux/if_bonding.h | 24 ++++ include/uapi/linux/if_link.h | 1 + 5 files changed, 264 insertions(+), 50 deletions(-) -- 2.17.2