[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f7b8e5ce-461e-dfd2-7248-3a330e266172@gmail.com>
Date: Sun, 9 May 2021 16:23:35 -0600
From: David Ahern <dsahern@...il.com>
To: Paolo Lungaroni <paolo.lungaroni@...roma2.it>,
David Ahern <dsahern@...nel.org>, netdev@...r.kernel.org
Cc: Jakub Kicinski <kuba@...nel.org>,
Stephen Hemminger <stephen@...workplumber.org>,
Stefano Salsano <stefano.salsano@...roma2.it>,
Ahmed Abdelsalam <ahabdels.dev@...il.com>,
Andrea Mayer <andrea.mayer@...roma2.it>
Subject: Re: [iproute2-next v2] seg6: add counters support for SRv6 Behaviors
On 5/8/21 9:44 AM, Paolo Lungaroni wrote:
> We introduce the "count" optional attribute for supporting counters in SRv6
> Behaviors as defined in [1], section 6. For each SRv6 Behavior instance,
> counters defined in [1] are:
>
> - the total number of packets that have been correctly processed;
> - the total amount of traffic in bytes of all packets that have been
> correctly processed;
>
> In addition, we introduce a new counter that counts the number of packets
> that have NOT been properly processed (i.e. errors) by an SRv6 Behavior
> instance.
>
> Each SRv6 Behavior instance can be configured, at the time of its creation,
> to make use of counters specifing the "count" attribute as follows:
>
> $ ip -6 route add 2001:db8::1 encap seg6local action End count dev eth0
>
> per-behavior counters can be shown by adding "-s" to the iproute2 command
> line, i.e.:
>
> $ ip -s -6 route show 2001:db8::1
> 2001:db8::1 encap seg6local action End packets 0 bytes 0 errors 0 dev eth0
>
> [1] https://www.rfc-editor.org/rfc/rfc8986.html#name-counters
>
> v2:
> - add help and route.8 man page updates
>
> Signed-off-by: Andrea Mayer <andrea.mayer@...roma2.it>
> Signed-off-by: Paolo Lungaroni <paolo.lungaroni@...roma2.it>
> ---
> include/uapi/linux/seg6_local.h | 30 ++++++++++++++
> ip/iproute.c | 9 ++++-
> ip/iproute_lwtunnel.c | 72 ++++++++++++++++++++++++++++++++-
> man/man8/ip-route.8.in | 13 ++++--
> 4 files changed, 119 insertions(+), 5 deletions(-)
>
applied. Thanks,
Powered by blists - more mailing lists