From 26a64ff9ca7b8afdd5ab9b9bc8a59f3ea9dbc53b Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Tue, 15 Feb 2022 18:42:41 -0500 Subject: [PATCH] zebra: include old reason in evpn-mh bond update Ensure we include the old reason when we are updating the reason code for a evpn-mh bond member. Now that this is a common API it could include things external to EVPN in this reason code bitfield (ex: vrrp). Signed-off-by: Stephen Worley --- zebra/zebra_evpn_mh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_evpn_mh.c b/zebra/zebra_evpn_mh.c index bc050671c7..45eb51ae14 100644 --- a/zebra/zebra_evpn_mh.c +++ b/zebra/zebra_evpn_mh.c @@ -3636,7 +3636,7 @@ void zebra_evpn_mh_update_protodown_bond_mbr(struct zebra_if *zif, bool clear, } old_protodown_rc = zif->protodown_rc; - new_protodown_rc &= ~ZEBRA_PROTODOWN_EVPN_ALL; + new_protodown_rc = (old_protodown_rc & ~ZEBRA_PROTODOWN_EVPN_ALL); new_protodown_rc |= (protodown_rc & ZEBRA_PROTODOWN_EVPN_ALL); new_protodown = !!new_protodown_rc;