From: David Ahern <dsahern@kernel.org>
To: Paolo Lungaroni <paolo.lungaroni@uniroma2.it>, netdev@vger.kernel.org
Cc: Jakub Kicinski <kuba@kernel.org>,
Stephen Hemminger <stephen@networkplumber.org>,
Stefano Salsano <stefano.salsano@uniroma2.it>,
Ahmed Abdelsalam <ahabdels.dev@gmail.com>,
Andrea Mayer <andrea.mayer@uniroma2.it>
Subject: Re: [iproute2-next v2] seg6: add support for flavors in SRv6 End* behaviors
Date: Thu, 22 Sep 2022 16:02:20 -0700 [thread overview]
Message-ID: <b8c54d29-7b38-e24f-9ea5-bbcb49e85cdd@kernel.org> (raw)
In-Reply-To: <20220912173923.595-1-paolo.lungaroni@uniroma2.it>
On 9/12/22 11:39 AM, Paolo Lungaroni wrote:
> As described in RFC 8986 [1], processing operations carried out by SRv6
> End, End.X and End.T (End* for short) behaviors can be modified or
> extended using the "flavors" mechanism. This patch adds the support for
> PSP,USP,USD flavors (defined in [1]) and for NEXT-C-SID flavor (defined
> in [2]) in SRv6 End* behaviors. Specifically, we add a new optional
> attribute named "flavors" that can be leveraged by the user to enable
> specific flavors while creating an SRv6 End* behavior instance.
> Multiple flavors can be specified together by separating them using
> commas.
>
> If a specific flavor (or a combination of flavors) is not supported by the
> underlying Linux kernel, an error message is reported to the user and the
> creation of the specific behavior instance is aborted.
>
> When the flavors attribute is omitted, the regular SRv6 End* behavior is
> performed.
>
> Flavors such as PSP, USP and USD do not accept additional configuration
> attributes. Conversely, the NEXT-C-SID flavor can be configured to support
> user-provided Locator-Block and Locator-Node Function lengths using,
> respectively, the lblen and the nflen attributes.
>
> Both lblen and nflen values must be evenly divisible by 8 and their sum
> must not exceed 128 bit (i.e. the C-SID container size).
>
> If the lblen attribute is omitted, the default value chosen by the Linux
> kernel is 32-bit. If the nflen attribute is omitted, the default value
> chosen by the Linux kernel is 16-bit.
>
> Some examples:
> ip -6 route add 2001:db8::1 encap seg6local action End flavors next-csid dev eth0
> ip -6 route add 2001:db8::2 encap seg6local action End flavors next-csid lblen 48 nflen 16 dev eth0
>
> Standard Output:
> ip -6 route show 2001:db8::2
> 2001:db8::2 encap seg6local action End flavors next-csid lblen 48 nflen 16 dev eth0 metric 1024 pref medium
>
> JSON Output:
> ip -6 -j -p route show 2001:db8::2
> [ {
> "dst": "2001:db8::2",
> "encap": "seg6local",
> "action": "End",
> "flavors": [ "next-csid" ],
> "lblen": 48,
> "nflen": 16,
> "dev": "eth0",
> "metric": 1024,
> "flags": [ ],
> "pref": "medium"
> } ]
>
> [1] - https://datatracker.ietf.org/doc/html/rfc8986
> [2] - https://datatracker.ietf.org/doc/html/draft-ietf-spring-srv6-srh-compression
>
> Signed-off-by: Paolo Lungaroni <paolo.lungaroni@uniroma2.it>
> ---
> include/uapi/linux/seg6_local.h | 24 +++++
> ip/iproute.c | 4 +-
> ip/iproute_lwtunnel.c | 186 +++++++++++++++++++++++++++++++-
> man/man8/ip-route.8.in | 71 +++++++++++-
> 4 files changed, 281 insertions(+), 4 deletions(-)
>
applied to iproute2-next. Thanks
prev parent reply other threads:[~2022-09-22 23:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-12 17:39 [iproute2-next v2] seg6: add support for flavors in SRv6 End* behaviors Paolo Lungaroni
2022-09-22 23:02 ` David Ahern [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=b8c54d29-7b38-e24f-9ea5-bbcb49e85cdd@kernel.org \
--to=dsahern@kernel.org \
--cc=ahabdels.dev@gmail.com \
--cc=andrea.mayer@uniroma2.it \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=paolo.lungaroni@uniroma2.it \
--cc=stefano.salsano@uniroma2.it \
--cc=stephen@networkplumber.org \
/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.