Thread (2 messages) flat view 2 messages, 2 authors, 2017-03-10

Re: [PATCH iproute2] iplink: add support for afstats subcommand

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2017-03-10 16:59:02

On Thu, 9 Mar 2017 12:43:36 +0000
Robert Shearman [off-list ref] wrote:
Add support for new afstats subcommand. This uses the new
IFLA_STATS_AF_SPEC attribute of RTM_GETSTATS messages to show
per-device, AF-specific stats. At the moment the kernel only supports
MPLS AF stats, so that is all that's implemented here.

The print_num function is exposed from ipaddress.c to be used for
printing the new stats so that the human-readable option, if set, can
be respected.

Example of use:

    $ ./ip/ip -f mpls link afstats dev eth1
    3: eth1
        mpls:
            RX: bytes  packets  errors  dropped  noroute
            9016       98       0       0        0
            TX: bytes  packets  errors  dropped
            7232       113      0       0

Signed-off-by: Robert Shearman <redacted>
Applied
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help