From cb5b31f5d011d3dcb2df5d876447fb3c7f758e6a Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Tue, 15 Feb 2022 12:35:02 -0500 Subject: [PATCH] zebra: evpn-mh use protodown update reason api When setting the protodown reason use the update api where we can directly update the entire reason bitfield since we have to set more than one. Signed-off-by: Stephen Worley --- zebra/zebra_evpn_mh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zebra/zebra_evpn_mh.c b/zebra/zebra_evpn_mh.c index 463ede158c..bc050671c7 100644 --- a/zebra/zebra_evpn_mh.c +++ b/zebra/zebra_evpn_mh.c @@ -3646,8 +3646,8 @@ void zebra_evpn_mh_update_protodown_bond_mbr(struct zebra_if *zif, bool clear, caller, zif->ifp->name, old_protodown_rc, new_protodown_rc); - if (zebra_if_set_protodown(zif->ifp, new_protodown, new_protodown_rc) == - 0) { + if (zebra_if_update_protodown_rc(zif->ifp, new_protodown, + new_protodown_rc) == 0) { if (IS_ZEBRA_DEBUG_EVPN_MH_ES) zlog_debug("%s protodown %s", zif->ifp->name, new_protodown ? "on" : "off"); -- 2.39.5