Skip to content

Commit 0cb1194

Browse files
authored
[fpmsyncd]: Add support for SRv6 (sonic-net#3123)
* [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).
1 parent 936e53d commit 0cb1194

12 files changed

Lines changed: 4325 additions & 17 deletions

fpmsyncd/fpmlink.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ bool FpmLink::isRawProcessing(struct nlmsghdr *h)
4343

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

46+
if (h->nlmsg_type == RTM_NEWSRV6LOCALSID || h->nlmsg_type == RTM_DELSRV6LOCALSID)
47+
{
48+
return true;
49+
}
50+
4651
if (h->nlmsg_type != RTM_NEWROUTE && h->nlmsg_type != RTM_DELROUTE)
4752
{
4853
return false;

fpmsyncd/fpmlink.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
#include "fpmsyncd/fpminterface.h"
1616
#include "fpmsyncd/routesync.h"
1717

18+
#define RTM_NEWSRV6LOCALSID 1000
19+
#define RTM_DELSRV6LOCALSID 1001
20+
1821
namespace swss {
1922

2023
class FpmLink : public FpmInterface {

0 commit comments

Comments
 (0)