Skip to content

Commit

Permalink
Only wait for GR End of RIB for the received address family
Browse files Browse the repository at this point in the history
Currently, graceful restart waits for the EoR message for all address
families "enabled" for the peer, but it should only wait for "received"
address families (the address families the peer is capable of handling).

Fixes: #2524

Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
  • Loading branch information
YutaroHayakawa committed Jan 25, 2024
1 parent 1b975be commit 6a72f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (peer *peer) recvedAllEOR() bool {
peer.fsm.lock.RLock()
defer peer.fsm.lock.RUnlock()
for _, a := range peer.fsm.pConf.AfiSafis {
if s := a.MpGracefulRestart.State; s.Enabled && !s.EndOfRibReceived {
if s := a.MpGracefulRestart.State; s.Enabled && s.Received && !s.EndOfRibReceived {
return false
}
}
Expand Down

0 comments on commit 6a72f53

Please sign in to comment.