Only wait for GR End of RIB for the received address family

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>
This commit is contained in:
Yutaro Hayakawa
2024-01-25 12:25:22 +09:00
committed by FUJITA Tomonori
parent 2558b5a069
commit 815683fa5e
+1 -1
View File
@@ -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
}
}