Skip to content

Commit ce2ecf2

Browse files
[frr]: Update frr version to 7.1 (#3575)
* Build 7.1 without patches * Port patches
1 parent 9726f6c commit ce2ecf2

10 files changed

+36
-193
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
[submodule "src/sonic-frr/frr"]
4848
path = src/sonic-frr/frr
4949
url = https://github.com/Azure/sonic-frr.git
50-
branch = frr/7.0
50+
branch = frr/7.1
5151
[submodule "platform/p4/p4-hlir/p4-hlir-v1.1"]
5252
path = platform/p4/p4-hlir/p4-hlir-v1.1
5353
url = https://github.com/p4lang/p4-hlir.git

rules/frr.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# FRRouting (frr) package
22

3-
FRR_VERSION = 7.0.1
3+
FRR_VERSION = 7.1
44
FRR_SUBVERSION = 0
55
export FRR_VERSION FRR_SUBVERSION
66

src/sonic-frr/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ BRANCH = $(shell date +%Y%m%d\.%H%M%S)
99
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
1010
# Build the package
1111
pushd ./frr
12-
git checkout -b $(BRANCH) origin/frr/7.0
12+
git checkout -b $(BRANCH) origin/frr/7.1
1313
stg init
1414
stg import -s ../patch/series
1515
tools/tarsource.sh -V -e '-sonic'
1616
dpkg-buildpackage -rfakeroot -b -us -uc -Ppkg.frr.nortrlib -j$(SONIC_CONFIG_MAKE_JOBS)
1717
stg undo
1818
git clean -xfdf
19-
git checkout frr/7.0
19+
git checkout frr/7.1
2020
git branch -D $(BRANCH)
2121
popd
2222
mv $(DERIVED_TARGET) $* $(DEST)/

src/sonic-frr/frr

Submodule frr updated from cd305c0 to 8c5e037

src/sonic-frr/patch/0001-Add-support-of-bgp-tcp-DSCP-value.patch

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From ef017a613691a40f32cdaa5396bbd4889b1cb647 Mon Sep 17 00:00:00 2001
1+
From ab8ae984def8ee5cea22f802b2a60a05214c11d2 Mon Sep 17 00:00:00 2001
22
From: Pavel Shirshov <[email protected]>
3-
Date: Fri, 14 Jun 2019 17:45:31 -0700
4-
Subject: [PATCH] Add support of bgp tcp DSCP value
3+
Date: Mon, 7 Oct 2019 17:00:15 -0700
4+
Subject: [PATCH 1/1] Add support of bgp tcp DSCP value
55

66
---
77
bgpd/bgp_network.c | 11 ++++-------
@@ -11,10 +11,10 @@ Subject: [PATCH] Add support of bgp tcp DSCP value
1111
4 files changed, 51 insertions(+), 8 deletions(-)
1212

1313
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
14-
index 4153da5a6..fed133eb7 100644
14+
index 6a5c2c4b3..9ec162aa4 100644
1515
--- a/bgpd/bgp_network.c
1616
+++ b/bgpd/bgp_network.c
17-
@@ -569,11 +569,9 @@ int bgp_connect(struct peer *peer)
17+
@@ -627,11 +627,9 @@ int bgp_connect(struct peer *peer)
1818
#ifdef IPTOS_PREC_INTERNETCONTROL
1919
frr_elevate_privs(&bgpd_privs) {
2020
if (sockunion_family(&peer->su) == AF_INET)
@@ -28,7 +28,7 @@ index 4153da5a6..fed133eb7 100644
2828
}
2929
#endif
3030

31-
@@ -643,10 +641,9 @@ static int bgp_listener(int sock, struct sockaddr *sa, socklen_t salen,
31+
@@ -707,10 +705,9 @@ static int bgp_listener(int sock, struct sockaddr *sa, socklen_t salen,
3232

3333
#ifdef IPTOS_PREC_INTERNETCONTROL
3434
if (sa->sa_family == AF_INET)
@@ -42,10 +42,10 @@ index 4153da5a6..fed133eb7 100644
4242

4343
sockopt_v6only(sa->sa_family, sock);
4444
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
45-
index 7445df883..f91b908a4 100644
45+
index d05432327..a15a0f526 100644
4646
--- a/bgpd/bgp_vty.c
4747
+++ b/bgpd/bgp_vty.c
48-
@@ -1113,6 +1113,42 @@ DEFUN (no_router_bgp,
48+
@@ -1139,6 +1139,42 @@ DEFUN (no_router_bgp,
4949
return CMD_SUCCESS;
5050
}
5151

@@ -88,7 +88,7 @@ index 7445df883..f91b908a4 100644
8888

8989
/* BGP router-id. */
9090

91-
@@ -12798,6 +12834,10 @@ void bgp_vty_init(void)
91+
@@ -12929,6 +12965,10 @@ void bgp_vty_init(void)
9292
/* "no router bgp" commands. */
9393
install_element(CONFIG_NODE, &no_router_bgp_cmd);
9494

@@ -100,10 +100,10 @@ index 7445df883..f91b908a4 100644
100100
install_element(BGP_NODE, &bgp_router_id_cmd);
101101
install_element(BGP_NODE, &no_bgp_router_id_cmd);
102102
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
103-
index 6fb3a70c7..503e6b4ed 100644
103+
index 8c0b5336e..55aeb2dd8 100644
104104
--- a/bgpd/bgpd.c
105105
+++ b/bgpd/bgpd.c
106-
@@ -2995,7 +2995,7 @@ static struct bgp *bgp_create(as_t *as, const char *name,
106+
@@ -3040,7 +3040,7 @@ static struct bgp *bgp_create(as_t *as, const char *name,
107107

108108
bgp->evpn_info = XCALLOC(MTYPE_BGP_EVPN_INFO,
109109
sizeof(struct bgp_evpn_info));
@@ -112,7 +112,7 @@ index 6fb3a70c7..503e6b4ed 100644
112112
bgp_evpn_init(bgp);
113113
bgp_pbr_init(bgp);
114114
return bgp;
115-
@@ -7516,6 +7516,9 @@ int bgp_config_write(struct vty *vty)
115+
@@ -7629,6 +7629,9 @@ int bgp_config_write(struct vty *vty)
116116
if (CHECK_FLAG(bgp->flags, BGP_FLAG_NO_FAST_EXT_FAILOVER))
117117
vty_out(vty, " no bgp fast-external-failover\n");
118118

@@ -123,10 +123,10 @@ index 6fb3a70c7..503e6b4ed 100644
123123
if (bgp->router_id_static.s_addr != 0)
124124
vty_out(vty, " bgp router-id %s\n",
125125
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
126-
index df3fde840..a6546457c 100644
126+
index b0f656753..32983a0a9 100644
127127
--- a/bgpd/bgpd.h
128128
+++ b/bgpd/bgpd.h
129-
@@ -553,6 +553,9 @@ struct bgp {
129+
@@ -569,6 +569,9 @@ struct bgp {
130130
/* Count of peers in established state */
131131
uint32_t established_peers;
132132

src/sonic-frr/patch/0002-Reduce-severity-of-Vty-connected-from-message.patch

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
From 87760a6a04d6ffbcc7a1093549bfb76656002b61 Mon Sep 17 00:00:00 2001
1+
From 5a30a4e91a91f8e19c69ef219cd6d8b19e9b6fae Mon Sep 17 00:00:00 2001
22
From: Pavel Shirshov <[email protected]>
3-
Date: Fri, 14 Jun 2019 17:48:50 -0700
4-
Subject: [PATCH] Reduce severity of 'Vty connected from' message
3+
Date: Mon, 7 Oct 2019 17:06:27 -0700
4+
Subject: [PATCH 1/1] Reduce severity of 'Vty connected from' message
55

66
---
77
lib/vty.c | 2 +-
88
1 file changed, 1 insertion(+), 1 deletion(-)
99

1010
diff --git a/lib/vty.c b/lib/vty.c
11-
index 8450922c2..f159d1b4b 100644
11+
index b1ed3d63c..5aa4b56cb 100644
1212
--- a/lib/vty.c
1313
+++ b/lib/vty.c
14-
@@ -1875,7 +1875,7 @@ static int vty_accept(struct thread *thread)
14+
@@ -1870,7 +1870,7 @@ static int vty_accept(struct thread *thread)
1515
zlog_info("can't set sockopt to vty_sock : %s",
1616
safe_strerror(errno));
1717

src/sonic-frr/patch/0003-ignore-nexthop-attribute-when-NLRI-is-present.patch

-156
This file was deleted.

src/sonic-frr/patch/0004-Allow-BGP-attr-NEXT_HOP-to-be-0.0.0.0-due-to-allevia.patch

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
From 4cd83e56e4f67fdc06325d92a82534fb4cb69952 Mon Sep 17 00:00:00 2001
1+
From 9fa0ffcc8f9ec987af527e911cd748014aeacffe Mon Sep 17 00:00:00 2001
22
From: Pavel Shirshov <[email protected]>
3-
Date: Thu, 20 Jun 2019 15:35:50 -0700
4-
Subject: [PATCH] Allow BGP attr NEXT_HOP to be 0.0.0.0 due to alleviate the
5-
vendor bug
3+
Date: Mon, 7 Oct 2019 17:15:15 -0700
4+
Subject: [PATCH 1/1] Allow BGP attr NEXT_HOP to be 0.0.0.0 due to alleviate
5+
the vendor bug
66

77
---
88
bgpd/bgp_route.c | 3 +--
99
1 file changed, 1 insertion(+), 2 deletions(-)
1010

1111
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
12-
index 38f3cad5a..55240eab8 100644
12+
index f8eae135e..732115756 100644
1313
--- a/bgpd/bgp_route.c
1414
+++ b/bgpd/bgp_route.c
15-
@@ -2873,8 +2873,7 @@ static int bgp_update_martian_nexthop(struct bgp *bgp, afi_t afi, safi_t safi,
15+
@@ -2904,8 +2904,7 @@ static int bgp_update_martian_nexthop(struct bgp *bgp, afi_t afi, safi_t safi,
1616

1717
/* If NEXT_HOP is present, validate it. */
1818
if (attr->flag & ATTR_FLAG_BIT(BGP_ATTR_NEXT_HOP)) {

src/sonic-frr/patch/0005-Support-VRF.patch

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
From 81990d9aafdfd459c0caa6cf07501fa628ada454 Mon Sep 17 00:00:00 2001
2-
From: Tyler Li <tyler.li@nephosinc.com>
3-
Date: Mon, 3 Jun 2019 01:48:11 -0700
4-
Subject: [PATCH] Support VRF
1+
From b7ae4e11c2dc14f9208b62ea060bb5ecbf4cddb2 Mon Sep 17 00:00:00 2001
2+
From: Pavel Shirshov <pavelsh@microsoft.com>
3+
Date: Mon, 7 Oct 2019 17:17:54 -0700
4+
Subject: [PATCH 1/1] Support VRF
55

66
---
77
zebra/zebra_fpm_netlink.c | 7 ++++++-
88
1 file changed, 6 insertions(+), 1 deletion(-)
99

1010
diff --git a/zebra/zebra_fpm_netlink.c b/zebra/zebra_fpm_netlink.c
11-
index 207cbc099..b98c6886b 100644
11+
index 88f0c3250..29f07f801 100644
1212
--- a/zebra/zebra_fpm_netlink.c
1313
+++ b/zebra/zebra_fpm_netlink.c
1414
@@ -327,7 +327,12 @@ static int netlink_route_info_encode(netlink_route_info_t *ri, char *in_buf,
@@ -26,5 +26,5 @@ index 207cbc099..b98c6886b 100644
2626
req->r.rtm_protocol = ri->rtm_protocol;
2727
req->r.rtm_scope = RT_SCOPE_UNIVERSE;
2828
--
29-
2.11.0
29+
2.17.1.windows.2
3030

src/sonic-frr/patch/series

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
0001-Add-support-of-bgp-tcp-DSCP-value.patch
22
0002-Reduce-severity-of-Vty-connected-from-message.patch
3-
0003-ignore-nexthop-attribute-when-NLRI-is-present.patch
43
0004-Allow-BGP-attr-NEXT_HOP-to-be-0.0.0.0-due-to-allevia.patch
54
0005-Support-VRF.patch

0 commit comments

Comments
 (0)