diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2019-01-18 14:30:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-22 12:04:14 -0800 |
commit | a258aeacd7f0dc10bb45caa7e92a3ea3ca1a76e9 (patch) | |
tree | 048540eec82f15a4ebd86c8511373b0be843a3f8 /include/uapi/linux/if_link.h | |
parent | 267c095aa2d9126059c1f5a65c660d5a71833e3f (diff) | |
download | linux-stable-a258aeacd7f0dc10bb45caa7e92a3ea3ca1a76e9.tar.gz linux-stable-a258aeacd7f0dc10bb45caa7e92a3ea3ca1a76e9.tar.bz2 linux-stable-a258aeacd7f0dc10bb45caa7e92a3ea3ca1a76e9.zip |
bonding: add support for xstats and export 3ad stats
This patch adds support for extended statistics (xstats) call to the
bonding. The first user would be the 3ad code which counts the following
events:
- LACPDU Rx/Tx
- LACPDU unknown type Rx
- LACPDU illegal Rx
- Marker Rx/Tx
- Marker response Rx/Tx
- Marker unknown type Rx
All of these are exported via netlink as separate attributes to be
easily extensible as we plan to add more in the future.
Similar to how the bridge and other xstats exports, the structure
inside is:
[ IFLA_STATS_LINK_XSTATS ]
-> [ LINK_XSTATS_TYPE_BOND ]
-> [ BOND_XSTATS_3AD ]
-> [ 3ad stats attributes ]
With this structure it's easy to add more stat types later.
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/if_link.h')
-rw-r--r-- | include/uapi/linux/if_link.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index d6533828123a..5b225ff63b48 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h @@ -925,6 +925,7 @@ enum { enum { LINK_XSTATS_TYPE_UNSPEC, LINK_XSTATS_TYPE_BRIDGE, + LINK_XSTATS_TYPE_BOND, __LINK_XSTATS_TYPE_MAX }; #define LINK_XSTATS_TYPE_MAX (__LINK_XSTATS_TYPE_MAX - 1) |