From fa46a5cd45c1540ea0049ec41f4dd8a17e22e01c Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Tue, 8 Jun 2021 14:14:58 -0700 Subject: [PATCH] bgpd: Extend EVPN next hop tracking to type-1 and type-4 routes NH tracking is already in use for type-1, type-3 and type-5 routes. This change extends that tracking to EAD and ESR to eliminate the 9s delay (BGP holdtimer) with ES/L2-NHG update seen when all the uplinks are shutdown on a remote EVPN PE. Ticket: #2682896 Signed-off-by: Anuradha Karuppiah --- bgpd/bgp_evpn.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index cbd29c146a..6248ad927b 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -6048,10 +6048,12 @@ bool bgp_evpn_is_prefix_nht_supported(const struct prefix *pfx) * type-5 routes. It may be tweaked later on for other routes, or * even removed completely when all routes are handled. */ - if (pfx && pfx->family == AF_EVPN && - (evp->prefix.route_type == BGP_EVPN_MAC_IP_ROUTE || - evp->prefix.route_type == BGP_EVPN_IMET_ROUTE || - evp->prefix.route_type == BGP_EVPN_IP_PREFIX_ROUTE)) + if (pfx && pfx->family == AF_EVPN + && (evp->prefix.route_type == BGP_EVPN_MAC_IP_ROUTE + || evp->prefix.route_type == BGP_EVPN_AD_ROUTE + || evp->prefix.route_type == BGP_EVPN_ES_ROUTE + || evp->prefix.route_type == BGP_EVPN_IMET_ROUTE + || evp->prefix.route_type == BGP_EVPN_IP_PREFIX_ROUTE)) return true; return false;