From f536ca30f522dc14882c4e41e51e6f92ff19f2cc Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Thu, 5 Dec 2024 11:56:34 +0800 Subject: [PATCH] zebra: use macro for one check Signed-off-by: anlan_cs --- zebra/zebra_rib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index b2543ca0e8b1..574083ae0283 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -4406,9 +4406,7 @@ int rib_add_multipath(afi_t afi, safi_t safi, struct prefix *p, if (ng) { nhe.nhg.nexthop = ng->nexthop; - if (re->type == ZEBRA_ROUTE_CONNECT || - re->type == ZEBRA_ROUTE_LOCAL || - re->type == ZEBRA_ROUTE_KERNEL) + if (RIB_SYSTEM_ROUTE(re)) SET_FLAG(nhe.flags, NEXTHOP_GROUP_INITIAL_DELAY_INSTALL); } else if (re->nhe_id > 0) nhe.id = re->nhe_id;