]> git.proxmox.com Git - mirror_frr.git/commit
lib: Add `SRV6_LOCATOR_USID` flag to SRv6 locator
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Thu, 27 Oct 2022 16:41:54 +0000 (18:41 +0200)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Sat, 29 Oct 2022 00:04:57 +0000 (02:04 +0200)
commit02b1544a5c181b8ed24aa084982da1f986325927
tree21f62006e7e8a0f9e487181b51fb018464c7993a
parent9b7491e1fc04bf71842865906dbf9a36e62bdb28
lib: Add `SRV6_LOCATOR_USID` flag to SRv6 locator

In this commit, we add support for a new flag called
`SRV6_LOCATOR_USID`. When the `SRV6_LOCATOR_USID` flag is set, the
routing protocols will install SRv6 behaviors with the uSID in the
dataplane.

This flag is used to specify a locator as a uSID locator. When a locator
is specified as a uSID locator, all the SRv6 SIDs allocated from the
locator by the routing protocols (like BGP) are bound to the SRv6 uSID
behaviors and use the SRv6 uSID codepoints in the BGP update message.

We extend the SRv6 locator implementation to add support for a `usid`
flag. When the `usid` flag is set, the bgpd will install SRv6 behaviors
with the uSID in the dataplane and use the proper SRv6 Endpoint Behavior
codepoint in the BGP advertisement.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
lib/srv6.h