]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Merge branch 'support-xstats-afstats' into next
authorDavid Ahern <dsahern@kernel.org>
Thu, 12 May 2022 17:09:29 +0000 (11:09 -0600)
committerDavid Ahern <dsahern@kernel.org>
Thu, 12 May 2022 17:09:29 +0000 (11:09 -0600)
commit5a179c7217c59552faff65e8c5f1dfd85dee685e
tree24827c84e9b121b05603c85df1cb7147c92a3914
parentce41750fcc924c377ac3dda1df265e3b27d90a68
parent5a1ad9f8c1e62f080d4249d572f5ebe0ae870c12
Merge branch 'support-xstats-afstats' into next

Petr Machata  says:

====================

The RTM_GETSTATS response attributes IFLA_STATS_LINK_XSTATS and
IFLA_STATS_LINK_XSTATS_SLAVE are used to carry statistics related to,
respectively, netdevices of a certain type, and netdevices enslaved to
netdevices of a certain type. IFLA_STATS_AF_SPEC are similarly used to
carry statistics specific to a certain address family.

In this patch set, add support for three new stats groups that cover the
above attributes: xstats, xstats_slave and afstats. Add bridge and bond
subgroups to the former two groups, and mpls subgroup to the latter one.

Now "group" is used for selecting the top-level attribute, and subgroup
for the link-type or address-family nest below it (bridge, bond, mpls in
this patchset). But xstats (both master and slave) are further
subdivided. E.g. in the case of bridge statistics, the two subdivisions
are called "stp" and "mcast". To make it possible to pick these sets,
add to the two selector levels of group and subgroup a third level,
suite, which is filtered in the userspace.

====================

Signed-off-by: David Ahern <dsahern@kernel.org>