mbox series

[net-next,0/4] bonding: add 3ad stats and export them via xstats

Message ID 20190118123023.17614-1-nikolay@cumulusnetworks.com
Headers show
Series bonding: add 3ad stats and export them via xstats | expand

Message

Nikolay Aleksandrov Jan. 18, 2019, 12:30 p.m. UTC
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(-)

Comments

David Miller Jan. 22, 2019, 8:07 p.m. UTC | #1
From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Date: Fri, 18 Jan 2019 14:30:19 +0200

> 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.

Series applied, thanks!