-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
f962fa6
commit 94b520b
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
src/sonic-frr/patch/0026-zebra-Add-encap-type-when-building-packet-for-FPM.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
From b914b0ad506649b5d341b549a37d3cb73e72b494 Mon Sep 17 00:00:00 2001 | ||
From: Stepan Blyschak <[email protected]> | ||
Date: Mon, 30 Oct 2023 14:31:45 +0200 | ||
Subject: [PATCH] zebra: Add encap type when building packet for FPM | ||
|
||
Signed-off-by: Donald Sharp <[email protected]> | ||
Signed-off-by: Stepan Blyschak <[email protected]> | ||
--- | ||
zebra/rt_netlink.c | 22 ++++++++++++---------- | ||
1 file changed, 12 insertions(+), 10 deletions(-) | ||
|
||
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c | ||
index 6b9b04785..71505e037 100644 | ||
--- a/zebra/rt_netlink.c | ||
+++ b/zebra/rt_netlink.c | ||
@@ -2269,19 +2269,21 @@ ssize_t netlink_route_multipath_msg_encode(int cmd, | ||
p, routedesc, bytelen, nexthop, | ||
&req->n, &req->r, datalen, cmd)) | ||
return 0; | ||
+ | ||
+ /* | ||
+ * Add encapsulation information when | ||
+ * installing via FPM. | ||
+ */ | ||
+ if (fpm) { | ||
+ if (!netlink_route_nexthop_encap(&req->n, | ||
+ datalen, | ||
+ nexthop)) | ||
+ return 0; | ||
+ } | ||
+ | ||
nexthop_num++; | ||
break; | ||
} | ||
- | ||
- /* | ||
- * Add encapsulation information when installing via | ||
- * FPM. | ||
- */ | ||
- if (fpm) { | ||
- if (!netlink_route_nexthop_encap( | ||
- &req->n, datalen, nexthop)) | ||
- return 0; | ||
- } | ||
} | ||
|
||
if (setsrc) { | ||
-- | ||
2.17.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters