]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ipstats: Add a group "afstats", subgroup "mpls"
authorPetr Machata <petrm@nvidia.com>
Mon, 9 May 2022 13:59:56 +0000 (15:59 +0200)
committerDavid Ahern <dsahern@kernel.org>
Thu, 12 May 2022 17:08:10 +0000 (11:08 -0600)
commit5ed8fd9d514422771d283607fac523d8baef1179
tree155a0561896b8c8ceafbf2dee643ba903b26dbf8
parentdff392fd86ee6085737560c88875b35628888e91
ipstats: Add a group "afstats", subgroup "mpls"

Add a new group, "afstats", for showing counters from the
IFLA_STATS_AF_SPEC nest, and a subgroup "mpls" for the AF_MPLS
specifically.

For example:

 # ip -n ns0-NrdgY9sx stats show dev veth01 group afstats
 3: veth01: group afstats subgroup mpls
     RX: bytes packets errors dropped noroute
             0       0      0       0       0
     TX: bytes packets errors dropped
           108       1      0       0

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/iplink.c
ip/ipstats.c