From e6f88442fe8a2ba1fcb8049e880bb3657ad1ad1e Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Sat, 26 Mar 2022 19:32:13 +0800 Subject: [PATCH] bgpd: remove dead code for evpn `is_vni_param_configured()` is used to check whether RD/RT configured for specific evpn vni. There seems to be no need for this mixed check. No caller for about 5 years, just remove it. Signed-off-by: anlan_cs --- bgpd/bgp_evpn_private.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bgpd/bgp_evpn_private.h b/bgpd/bgp_evpn_private.h index fd30cc2db..763408782 100644 --- a/bgpd/bgp_evpn_private.h +++ b/bgpd/bgp_evpn_private.h @@ -316,12 +316,6 @@ static inline int is_export_rt_configured(struct bgpevpn *vpn) return (CHECK_FLAG(vpn->flags, VNI_FLAG_EXPRT_CFGD)); } -static inline int is_vni_param_configured(struct bgpevpn *vpn) -{ - return (is_rd_configured(vpn) || is_import_rt_configured(vpn) - || is_export_rt_configured(vpn)); -} - static inline void encode_es_rt_extcomm(struct ecommunity_val *eval, struct ethaddr *mac) {