forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sonic-net#97 from mssonicbld/sonicbld/202205-merge
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
- Loading branch information
Showing
5 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
}, | ||
{ | ||
"key": "sonic_log_level", | ||
"stringval": "error" | ||
"stringval": "debug" | ||
} | ||
] | ||
} |
32 changes: 32 additions & 0 deletions
32
src/sonic-frr/patch/0030-zebra-remove-duplicated-nexthops-when-sending-fpm-msg.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,32 @@ | ||
From 4aa1aace3e32039b668c04cd682b01e0397144ea Mon Sep 17 00:00:00 2001 | ||
|
||
From: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com> | ||
|
||
From: =?UTF-8?q?=E6=81=AD=E7=AE=80?= <gongjian.lhr@alibaba-inc.com> | ||
Date: Wed, 26 Jul 2023 09:51:51 +0800 | ||
Subject: [PATCH] zebra: remove duplicated nexthops when sending fpm msg | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
When zebra send msg to fpm client, it doesn't handle duplicated nexthops especially, which means if zebra has a route with NUM1 recursive nexthops, each resolved to the same NUM2 connected nexthops, it will send to fpm client a route with NUM1*NUM2 nexthops. But actually there are only NUM2 useful nexthops, the left NUM1*NUM2-NUM2 nexthops are all duplicated nexthops. By the way, zebra has duplicated nexthop remove logic when sending msg to kernel. | ||
Add duplicated nexthop remove logic to zebra when sending msg to fpm client. | ||
|
||
Signed-off-by: 恭简 <gongjian.lhr@alibaba-inc.com> | ||
--- | ||
zebra/zebra_fpm_netlink.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/zebra/zebra_fpm_netlink.c b/zebra/zebra_fpm_netlink.c | ||
index d6c875a7e..6f0fdce2a 100644 | ||
--- a/zebra/zebra_fpm_netlink.c | ||
+++ b/zebra/zebra_fpm_netlink.c | ||
@@ -322,6 +322,8 @@ static int netlink_route_info_fill(struct netlink_route_info *ri, int cmd, | ||
|
||
if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_RECURSIVE)) | ||
continue; | ||
+ if (CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_DUPLICATE)) | ||
+ continue; | ||
|
||
if (nexthop->type == NEXTHOP_TYPE_BLACKHOLE) { | ||
switch (nexthop->bh_type) { |
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
Submodule sonic-platform-daemons
updated
4 files
+150 −2 | sonic-chassisd/scripts/chassisd | |
+16 −3 | sonic-chassisd/tests/mock_swsscommon.py | |
+2 −0 | sonic-chassisd/tests/test_chassis_db_init.py | |
+115 −1 | sonic-chassisd/tests/test_chassisd.py |