All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Shearman <rshearma@brocade.com>
To: <davem@davemloft.net>
Cc: <netdev@vger.kernel.org>, roopa <roopa@cumulusnetworks.com>,
	David Ahern <dsa@cumulusnetworks.com>, <ebiederm@xmission.com>,
	Robert Shearman <rshearma@brocade.com>
Subject: [PATCH net-next 0/2] mpls: Packet stats
Date: Fri, 13 Jan 2017 18:14:11 +0000	[thread overview]
Message-ID: <1484331253-5908-1-git-send-email-rshearma@brocade.com> (raw)

This patchset records per-interface packet stats in the MPLS
forwarding path and exports them using a nest of attributes root at a
new IFLA_STATS_AF_SPEC attribute as part of RTM_GETSTATS messages:

[IFLA_STATS_AF_SPEC]
 -> [AF_MPLS]
  -> [MPLS_STATS_LINK]
   -> struct mpls_link_stats

The first patch adds the rtnl infrastructure for this, including a new
callbacks to per-AF ops of fill_stats_af and get_stats_af_size. The
second patch records MPLS stats and makes use of the infrastructure to
export them. The rtnl infrastructure could also be used to export IPv6
stats in the future.

Robert Shearman (2):
  net: AF-specific RTM_GETSTATS attributes
  mpls: Packet stats

 include/net/rtnetlink.h      |   4 +
 include/uapi/linux/if_link.h |   1 +
 include/uapi/linux/mpls.h    |  30 ++++++++
 net/core/rtnetlink.c         |  50 ++++++++++++
 net/mpls/af_mpls.c           | 179 +++++++++++++++++++++++++++++++++++++------
 net/mpls/internal.h          |  58 +++++++++++++-
 net/mpls/mpls_iptunnel.c     |  11 ++-
 7 files changed, 305 insertions(+), 28 deletions(-)

-- 
2.1.4

             reply	other threads:[~2017-01-13 18:15 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-13 18:14 Robert Shearman [this message]
2017-01-13 18:14 ` [PATCH net-next 1/2] net: AF-specific RTM_GETSTATS attributes Robert Shearman
2017-01-13 22:50   ` Roopa Prabhu
2017-01-13 18:14 ` [PATCH net-next 2/2] mpls: Packet stats Robert Shearman
2017-01-13 22:51   ` Roopa Prabhu
2017-01-14  6:41   ` kbuild test robot
2017-01-16 10:30     ` Robert Shearman
2017-01-14  6:58   ` kbuild test robot
2017-01-13 22:50 ` [PATCH net-next 0/2] " Roopa Prabhu
2017-01-16 14:16 ` [PATCH net-next v2 " Robert Shearman
2017-01-16 14:16   ` [PATCH net-next v2 1/2] net: AF-specific RTM_GETSTATS attributes Robert Shearman
2017-01-16 14:16   ` [PATCH net-next v2 2/2] mpls: Packet stats Robert Shearman
2017-01-17 19:39   ` [PATCH net-next v2 0/2] " David Miller

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=1484331253-5908-1-git-send-email-rshearma@brocade.com \
    --to=rshearma@brocade.com \
    --cc=davem@davemloft.net \
    --cc=dsa@cumulusnetworks.com \
    --cc=ebiederm@xmission.com \
    --cc=netdev@vger.kernel.org \
    --cc=roopa@cumulusnetworks.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.