diff options
| author | anlan_cs <vic.lan@pica8.com> | 2022-03-26 19:32:13 +0800 |
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2022-03-26 19:48:52 +0800 |
| commit | e6f88442fe8a2ba1fcb8049e880bb3657ad1ad1e (patch) | |
| tree | 498f10c45f0046a9d5643e3e862e6b80c192279a | |
| parent | 52093e0f0e5753b753ae1b048f69b979ed3c75f6 (diff) | |
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 <vic.lan@pica8.com>
| -rw-r--r-- | bgpd/bgp_evpn_private.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bgpd/bgp_evpn_private.h b/bgpd/bgp_evpn_private.h index fd30cc2db3..763408782f 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) { |
