From: Petr Machata <petrm@nvidia.com>
To: <netdev@vger.kernel.org>
Cc: David Ahern <dsahern@gmail.com>, Ido Schimmel <idosch@nvidia.com>,
"Petr Machata" <petrm@nvidia.com>
Subject: [PATCH iproute2-next 00/10] ip stats: Support for xstats and afstats
Date: Mon, 9 May 2022 15:59:53 +0200 [thread overview]
Message-ID: <cover.1652104101.git.petrm@nvidia.com> (raw)
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.
The patchset progresses as follows:
- Patches #1 and #2 fix up MPLS stats formatting and expose the helpers
for reuse.
- Patch #3 adds ip stats group afstats and a subgroup mpls
- Patch #4 adds support for JSON formatting to MPLS
- Patch #5 adds support for the selector level "suite"
- Patch #6 adds groups "xstats" and "xstats_slave"
- Patches #7 and #8 first prepare helpers, then add support for the
"bridge" subgroup of the xstats groups.
- Patch #9 adds the "bond" subgroup.
- Patch #10 adds manual page coverage.
Petr Machata (10):
iplink: Fix formatting of MPLS stats
iplink: Publish a function to format MPLS stats
ipstats: Add a group "afstats", subgroup "mpls"
iplink: Add JSON support to MPLS stats formatter
ipstats: Add a third level of stats hierarchy, a "suite"
ipstats: Add groups "xstats", "xstats_slave"
iplink_bridge: Split bridge_print_stats_attr()
ipstats: Expose bridge stats in ipstats
ipstats: Expose bond stats in ipstats
man: ip-stats.8: Describe groups xstats, xstats_slave and afstats
ip/ip_common.h | 22 +++
ip/iplink.c | 75 ++++++++--
ip/iplink_bond.c | 55 +++++++-
ip/iplink_bridge.c | 334 ++++++++++++++++++++++++++++----------------
ip/ipstats.c | 126 ++++++++++++++++-
man/man8/ip-stats.8 | 50 ++++++-
6 files changed, 522 insertions(+), 140 deletions(-)
--
2.31.1
next reply other threads:[~2022-05-09 14:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-09 13:59 Petr Machata [this message]
2022-05-09 13:59 ` [PATCH iproute2-next 01/10] iplink: Fix formatting of MPLS stats Petr Machata
2022-05-09 13:59 ` [PATCH iproute2-next 02/10] iplink: Publish a function to format " Petr Machata
2022-05-09 13:59 ` [PATCH iproute2-next 03/10] ipstats: Add a group "afstats", subgroup "mpls" Petr Machata
2022-05-09 13:59 ` [PATCH iproute2-next 04/10] iplink: Add JSON support to MPLS stats formatter Petr Machata
2022-05-09 13:59 ` [PATCH iproute2-next 05/10] ipstats: Add a third level of stats hierarchy, a "suite" Petr Machata
2022-05-09 13:59 ` [PATCH iproute2-next 06/10] ipstats: Add groups "xstats", "xstats_slave" Petr Machata
2022-05-09 14:00 ` [PATCH iproute2-next 07/10] iplink_bridge: Split bridge_print_stats_attr() Petr Machata
2022-05-09 14:00 ` [PATCH iproute2-next 08/10] ipstats: Expose bridge stats in ipstats Petr Machata
2022-05-09 14:00 ` [PATCH iproute2-next 09/10] ipstats: Expose bond " Petr Machata
2022-05-27 0:13 ` Stephen Hemminger
2022-05-27 14:50 ` Petr Machata
2022-05-09 14:00 ` [PATCH iproute2-next 10/10] man: ip-stats.8: Describe groups xstats, xstats_slave and afstats Petr Machata
2022-05-12 17:20 ` [PATCH iproute2-next 00/10] ip stats: Support for xstats " patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1652104101.git.petrm@nvidia.com \
--to=petrm@nvidia.com \
--cc=dsahern@gmail.com \
--cc=idosch@nvidia.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).