netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Robert Shearman <rshearma@brocade.com>
Cc: <netdev@vger.kernel.org>, David Ahern <dsa@cumulusnetworks.com>,
	roopa <roopa@cumulusnetworks.com>
Subject: Re: [PATCH iproute2] iplink: add support for afstats subcommand
Date: Fri, 10 Mar 2017 08:58:59 -0800	[thread overview]
Message-ID: <20170310085859.10336dfd@xeon-e3> (raw)
In-Reply-To: <1489063416-26930-1-git-send-email-rshearma@brocade.com>

On Thu, 9 Mar 2017 12:43:36 +0000
Robert Shearman <rshearma@brocade.com> 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 <rshearma@brocade.com>

Applied

      reply	other threads:[~2017-03-10 16:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09 12:43 [PATCH iproute2] iplink: add support for afstats subcommand Robert Shearman
2017-03-10 16:58 ` Stephen Hemminger [this message]

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=20170310085859.10336dfd@xeon-e3 \
    --to=stephen@networkplumber.org \
    --cc=dsa@cumulusnetworks.com \
    --cc=netdev@vger.kernel.org \
    --cc=roopa@cumulusnetworks.com \
    --cc=rshearma@brocade.com \
    /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).