[iproute2-next v2] seg6: add support for vrftable attribute in SRv6 End.DT4/DT6 behaviors

2020-12-02 Thread Paolo Lungaroni
quot;End.DT6", "vrftable": 200, "dev": "eth0", "metric": 1024, "flags": [ ], "pref": "medium" } ] v2: - no changes made: resubmit after pulling out this patch from the kernel patchs

[RFC iproute2-next] seg6: add counters support for SRv6 Behaviors

2021-04-07 Thread Paolo Lungaroni
l action End packets 0 bytes 0 errors 0 dev eth0 [1] https://www.rfc-editor.org/rfc/rfc8986.html#name-counters Signed-off-by: Paolo Lungaroni Signed-off-by: Andrea Mayer --- include/uapi/linux/seg6_local.h | 8 ip/iproute_lwtunnel.c | 32 +++-

[RFC iproute2-next v2] seg6: add counters support for SRv6 Behaviors

2021-04-15 Thread Paolo Lungaroni
l action End packets 0 bytes 0 errors 0 dev eth0 [1] https://www.rfc-editor.org/rfc/rfc8986.html#name-counters Signed-off-by: Andrea Mayer Signed-off-by: Paolo Lungaroni --- include/uapi/linux/seg6_local.h | 30 + ip/iproute_lwtunnel.c | 80 +

Re: [RFC iproute2-next v2] seg6: add counters support for SRv6 Behaviors

2021-04-17 Thread Paolo Lungaroni
Quoting Stephen Hemminger : On Thu, 15 Apr 2021 20:06:43 +0200 Paolo Lungaroni wrote: + if (is_json_context()) + open_json_object("stats64"); + + if (tb[SEG6_LOCAL_CNT_PACKETS]) { + packets = rta_getattr_u64(tb[SEG6_LOCAL_C