Skip to content

Commit a279d8e

Browse files
committed
Added patch in FRR to send tag value associated with route
via NETLINK RTA_PRIORITY field which can be used as attribute/metadata in fpmsyncd for different use-cases. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
1 parent 9af70fe commit a279d8e

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From 1d16dfa1330c67e9bd25a93117f6e34b4bbb20b7 Mon Sep 17 00:00:00 2001
2+
From: Abhishek Dosi <abdosi@microsoft.com>
3+
Date: Mon, 4 Nov 2024 18:58:56 +0000
4+
Subject: [PATCH] Added Change in Zebra FPM library to send tag value as
5+
RTNETLINK Priority field (instead of metric). This tag value can be used as
6+
metadata/attribute of the route in upper application like fpmsyncd
7+
8+
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
9+
---
10+
zebra/zebra_fpm_netlink.c | 3 ++-
11+
1 file changed, 2 insertions(+), 1 deletion(-)
12+
13+
diff --git a/zebra/zebra_fpm_netlink.c b/zebra/zebra_fpm_netlink.c
14+
index 231047143..2b45087d4 100644
15+
--- a/zebra/zebra_fpm_netlink.c
16+
+++ b/zebra/zebra_fpm_netlink.c
17+
@@ -297,7 +297,8 @@ static int netlink_route_info_fill(struct netlink_route_info *ri, int cmd,
18+
19+
ri->rtm_protocol = netlink_proto_from_route_type(re->type);
20+
ri->rtm_type = RTN_UNICAST;
21+
- ri->metric = &re->metric;
22+
+ // Patch to send tag value via NETLINK Priority field (RTA_PRIORITY). The Tag vale can be used as metadata/attribute in fpmsyncd for further processing
23+
+ ri->metric = &re->tag;
24+
25+
for (ALL_NEXTHOPS(re->nhe->nhg, nexthop)) {
26+
if (ri->num_nhs >= zrouter.multipath_num)
27+
--
28+
2.25.1
29+

src/sonic-frr/patch/series

+1
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@
5353
0053-bgpd-Set-md5-TCP-socket-option-for-outgoing-connections-on-listener.patch
5454
build-dplane-fpm-sonic-module.patch
5555
bgpd-lib-Include-SID-structure-in-seg6local-nexthop.patch
56+
0054-Added-Change-in-Zebra-FPM-library-to-send-tag-value-.patch

0 commit comments

Comments
 (0)