]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: add 3ad stats
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 18 Jan 2019 12:30:22 +0000 (14:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jan 2019 20:04:14 +0000 (12:04 -0800)
commit1ca2a68d075960fbc7f2efa326b648f600e560d6
treee313bef170cd0c8faa8696a1aa54a00d31f54720
parent05d65c3373109b69a69aa237051de05649f29ba5
bonding: add 3ad stats

Count the following types of 3ad packets per slave:
 - rx/tx lacpdu
 - rx/tx marker
 - rx/tx marker response
 - rx illegal lacpdus (right now counted on wrong length)
 - rx unknown lacpdu type
 - rx unknown marker type

The counters are using atomic64 since this is not fast path.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c
include/net/bond_3ad.h