Skip to content

Commit

Permalink
[fpmsyncd]: Add support for SRv6 (sonic-net#3123)
Browse files Browse the repository at this point in the history
* [fpmsyncd]: Add support for SRv6
What I did
Extended fpmsyncd to process Netlink TLVs containing SRv6 information (SRv6 local SIDs and routes).
Extend fpmsyncd to process SRv6 routes and local SIDs received from FRR
Add test cases to verify SRv6 functionality

Why I did it
fpmsyncd did not process Netlink TLVs containing SRv6 information (SRv6 local SIDs and routes).
  • Loading branch information
cscarpitta authored Nov 15, 2024
1 parent e8d81b4 commit 2e2d4e5
Show file tree
Hide file tree
Showing 12 changed files with 4,325 additions and 17 deletions.
5 changes: 5 additions & 0 deletions fpmsyncd/fpmlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ bool FpmLink::isRawProcessing(struct nlmsghdr *h)

rtm = (struct rtmsg *)NLMSG_DATA(h);

if (h->nlmsg_type == RTM_NEWSRV6LOCALSID || h->nlmsg_type == RTM_DELSRV6LOCALSID)
{
return true;
}

if (h->nlmsg_type != RTM_NEWROUTE && h->nlmsg_type != RTM_DELROUTE)
{
return false;
Expand Down
3 changes: 3 additions & 0 deletions fpmsyncd/fpmlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#include "fpmsyncd/fpminterface.h"
#include "fpmsyncd/routesync.h"

#define RTM_NEWSRV6LOCALSID 1000
#define RTM_DELSRV6LOCALSID 1001

namespace swss {

class FpmLink : public FpmInterface {
Expand Down
Loading

0 comments on commit 2e2d4e5

Please sign in to comment.