Skip to content

Commit 27ca6fd

Browse files
committed
[202311][FRR]FRR/zebra error messages for routes from kernel default table
1 parent 2e39683 commit 27ca6fd

File tree

1 file changed

+38
-13
lines changed

1 file changed

+38
-13
lines changed

src/sonic-frr/patch/0035-fpm-ignore-route-from-default-table.patch

+38-13
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,46 @@
1-
From bb3b003840959adf5b5be52e91bc798007c9857a Mon Sep 17 00:00:00 2001
2-
From: Ying Xie <ying.xie@microsoft.com>
3-
Date: Thu, 8 Sep 2022 04:20:36 +0000
4-
Subject: [PATCH] From 776a29e8ab32c1364ee601a8730aabb773b0c86b Mon Sep 17
5-
00:00:00 2001 Subject: [PATCH] ignore route from default table
1+
commit 8b78a43ba243df281f2096a84893ad87cb2a79ff
2+
Author: Stephen Xu <stexu@linkedin.com>
3+
Date: Wed Nov 16 16:07:37 2022 -0500
64

7-
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
8-
---
9-
zebra/zebra_fpm_netlink.c | 5 +++++
10-
1 file changed, 5 insertions(+)
5+
[PATCH] ignore route from default table
116

7+
Signed-off-by: Stephen Xu <stexu@linkedin.com>
8+
9+
diff --git a/zebra/zebra_fpm.c b/zebra/zebra_fpm.c
10+
index 43958fdfd..de7e246d4 100644
11+
--- a/zebra/zebra_fpm.c
12+
+++ b/zebra/zebra_fpm.c
13+
@@ -25,6 +25,7 @@
14+
15+
#include "log.h"
16+
#include "libfrr.h"
17+
+#include "rib.h"
18+
#include "stream.h"
19+
#include "thread.h"
20+
#include "network.h"
21+
@@ -1016,8 +1017,15 @@ static int zfpm_build_route_updates(void)
22+
else
23+
zfpm_g->stats.route_dels++;
24+
} else {
25+
- zlog_err("%s: Encoding Prefix: %pRN No valid nexthops",
26+
- __func__, dest->rnode);
27+
+ struct rib_table_info *table_info =
28+
+ rib_table_info(rib_dest_table(dest));
29+
+ if (table_info && table_info->table_id == RT_TABLE_DEFAULT) {
30+
+ zfpm_debug("%s: Skip encoding default table prefix: %pRN",
31+
+ __func__, dest->rnode);
32+
+ } else {
33+
+ zlog_err("%s: Encoding Prefix: %pRN No valid nexthops",
34+
+ __func__, dest->rnode);
35+
+ }
36+
}
37+
}
38+
1239
diff --git a/zebra/zebra_fpm_netlink.c b/zebra/zebra_fpm_netlink.c
13-
index 34be9fb39..d6c875a7e 100644
40+
index ec22c5dd4..53e5f59fb 100644
1441
--- a/zebra/zebra_fpm_netlink.c
1542
+++ b/zebra/zebra_fpm_netlink.c
16-
@@ -283,6 +283,11 @@ static int netlink_route_info_fill(struct netlink_route_info *ri, int cmd,
43+
@@ -278,6 +278,11 @@ static int netlink_route_info_fill(struct netlink_route_info *ri, int cmd,
1744
rib_table_info(rib_dest_table(dest));
1845
struct zebra_vrf *zvrf = table_info->zvrf;
1946

@@ -25,5 +52,3 @@ index 34be9fb39..d6c875a7e 100644
2552
memset(ri, 0, sizeof(*ri));
2653

2754
ri->prefix = rib_dest_prefix(dest);
28-
--
29-
2.17.1

0 commit comments

Comments
 (0)