bgpd:send EOR during GR only when fib install comeplete for wfi enabled#19522
Merged
ton31337 merged 1 commit intoFRRouting:masterfrom Sep 27, 2025
Merged
Conversation
ton31337
requested changes
Sep 3, 2025
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
2a8b2ca to
6525259
Compare
6525259 to
a2379a5
Compare
ton31337
requested changes
Sep 11, 2025
Member
ton31337
left a comment
There was a problem hiding this comment.
Please don't use public IP ranges in topotests and don't use topojson (it's horrible to debug it).
76f6706 to
4b68712
Compare
Contributor
Author
Done |
Contributor
Author
|
d18ebbc to
a993c53
Compare
Contributor
Author
|
ci: rerun |
Contributor
|
ci:rerun |
1 similar comment
Contributor
Author
|
ci:rerun |
ton31337
requested changes
Sep 17, 2025
Member
ton31337
left a comment
There was a problem hiding this comment.
- Please use frr.conf (a single config for loading all configurations, without bgpd/zebra/etc.);
- Drop all
debug,logfrom configs; - No sleep() in topotests, replace all using topotest.run_and_expect();
- No public IPs in topotests.
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
e88c7a9 to
0359408
Compare
ton31337
reviewed
Sep 18, 2025
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
0359408 to
28b1106
Compare
Contributor
Author
|
ci: rerun |
1 similar comment
Contributor
Author
|
ci: rerun |
Contributor
Author
|
ci:rerun |
ton31337
reviewed
Sep 19, 2025
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
tests/topotests/bgp_gr_fib_suppress/test_bgp_gr_fib_suppress.py
Outdated
Show resolved
Hide resolved
28b1106 to
5de5a26
Compare
…fib enabled Currently during GR, EOR is sent to neighbor prematurely for suppress fib enabled case. below fix has be implemented. keep a counter to track the routes installed in FIB.Increamnet counter when bgp send route install to zebra, decreamnet counter when fib install ack to received from zebra in bgp.when this count reaches zero and route deferred count is 0 ad gr route syn pending is set, then do further processing of sending EOR and zebra gr update complete. This will send EOR as soon as last route fib install ack is received. Testing: before: 2020:2025/08/19 21:23:53.786402 BGP: [ZP3RE-J4Q8C] send End-of-RIB for IPv4 Unicast to swp1s1.3 2021:2025/08/19 21:23:53.786412 BGP: [ZP3RE-J4Q8C] send End-of-RIB for IPv6 Unicast to swp1s0.3 2022:2025/08/19 21:23:53.786415 BGP: [ZP3RE-J4Q8C] send End-of-RIB for IPv4 Unicast to swp1s0.3 2511:2025/08/19 21:23:54.162310 BGP: [TN0HX-6G1RR] u1:s5 send UPDATE w/ attr: , origin ?, mp_nexthop ::(::), path 64900 56000 2512:2025/08/19 21:23:54.162314 BGP: [H06SA-0JAPR] u1:s5 send MP_REACH for afi/safi IPv4/unicast 2513:2025/08/19 21:23:54.162316 BGP: [HVRWP-5R9NQ] u1:s5 send UPDATE 91.0.0.49/32 IPv4 unicast after: 4270:2025/08/22 17:41:41.631993 BGP: [HVRWP-5R9NQ] u2:s2 send UPDATE 2003:1::/125 IPv6 unicast 4271:2025/08/22 17:41:41.631998 BGP: [HVRWP-5R9NQ] u2:s2 send UPDATE 2003:7:2::/125 IPv6 unicast 4272:2025/08/22 17:41:41.632003 BGP: [WEV7K-2GAQ5] u2:s2 send UPDATE len 116 (max message len: 65535) numpfx 2 4273:2025/08/22 17:41:41.632008 BGP: [JJ5V1-EZ0XX] u2:s2 swp1s1 send UPDATE w/ mp_nexthops 2003:0:1::1, fe80::1e34:daff:febe:4169 4274:2025/08/22 17:41:41.632041 BGP: [ZP3RE-J4Q8C] send End-of-RIB for IPv4 Unicast to swp1s1 4275:2025/08/22 17:41:41.632054 BGP: [ZP3RE-J4Q8C] send End-of-RIB for IPv6 Unicast to swp1s1 Signed-off-by: Vijayalaxmi Basavaraj <vbasavaraj@nvidia.com>
5de5a26 to
95f0a2b
Compare
Contributor
Author
|
ci:rerun |
2 similar comments
Contributor
Author
|
ci:rerun |
Contributor
Author
|
ci:rerun |
This was referenced Oct 1, 2025
8 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently during GR, EOR is sent to neighbor prematurely for wfi enabled case. below fix has be implemented.
keep a counter to track the routes installed in FIB.Increamnet
counter when bgp send route install to zebra, decreamnet counter when
fib install ack to received from zebra in bgp.when this count reaches
zero and route deferred count is 0 ad gr route syn pending is set, then
do further processing of sending EOR and zebra gr update complete.
This will send EOR as soon as last route fib install ack is received.
Testing:
before:
2020:2025/08/19 21:23:53.786402 BGP: [ZP3RE-J4Q8C] send End-of-RIB for IPv4 Unicast to swp1s1.3 2021:2025/08/19 21:23:53.786412 BGP: [ZP3RE-J4Q8C] send End-of-RIB for IPv6 Unicast to swp1s0.3 2022:2025/08/19 21:23:53.786415 BGP: [ZP3RE-J4Q8C] send End-of-RIB for IPv4 Unicast to swp1s0.3 2511:2025/08/19 21:23:54.162310 BGP: [TN0HX-6G1RR] u1:s5 send UPDATE w/ attr: , origin ?, mp_nexthop ::(::), path 64900 56000 2512:2025/08/19 21:23:54.162314 BGP: [H06SA-0JAPR] u1:s5 send MP_REACH for afi/safi IPv4/unicast 2513:2025/08/19 21:23:54.162316 BGP: [HVRWP-5R9NQ] u1:s5 send UPDATE 91.0.0.49/32 IPv4 unicast
after:
4270:2025/08/22 17:41:41.631993 BGP: [HVRWP-5R9NQ] u2:s2 send UPDATE 2003:1::/125 IPv6 unicast 4271:2025/08/22 17:41:41.631998 BGP: [HVRWP-5R9NQ] u2:s2 send UPDATE 2003:7:2::/125 IPv6 unicast 4272:2025/08/22 17:41:41.632003 BGP: [WEV7K-2GAQ5] u2:s2 send UPDATE len 116 (max message len: 65535) numpfx 2 4273:2025/08/22 17:41:41.632008 BGP: [JJ5V1-EZ0XX] u2:s2 swp1s1 send UPDATE w/ mp_nexthops 2003:0:1::1, fe80::1e34:daff:febe:4169 4274:2025/08/22 17:41:41.632041 BGP: [ZP3RE-J4Q8C] send End-of-RIB for IPv4 Unicast to swp1s1 4275:2025/08/22 17:41:41.632054 BGP: [ZP3RE-J4Q8C] send End-of-RIB for IPv6 Unicast to swp1s1