Re: [PATCH net-next 0/2] mpls: Packet stats
On 1/13/17, 10:14 AM, Robert Shearman wrote: > 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 > LGTM, thanks Robert
[PATCH net-next 0/2] mpls: Packet stats
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
[PATCH net-next 0/2] mpls: packet stats and ttl propagation config
This patch series implements new bits of mpls functionality: keeping statistics on packets as they pass through the box and allowing ttl propagation to be configured. Robert Shearman (2): mpls: packet stats mpls: allow TTL propagation to/from IP packets to be configured Documentation/networking/mpls-sysctl.txt | 19 +++ include/net/netns/mpls.h | 4 + net/mpls/Makefile| 1 + net/mpls/af_mpls.c | 205 --- net/mpls/internal.h | 93 +- net/mpls/mpls_iptunnel.c | 21 +++- net/mpls/proc.c | 128 +++ 7 files changed, 417 insertions(+), 54 deletions(-) create mode 100644 net/mpls/proc.c -- 2.1.4