]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: remove dead code for evpn 10889/head
authoranlan_cs <vic.lan@pica8.com>
Sat, 26 Mar 2022 11:32:13 +0000 (19:32 +0800)
committeranlan_cs <vic.lan@pica8.com>
Sat, 26 Mar 2022 11:48:52 +0000 (19:48 +0800)
`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>
bgpd/bgp_evpn_private.h

index fd30cc2db3ae1fa3fa60f89b61fba42ca671f7c4..763408782f79372aa10d67b0cd88cb0338d96219 100644 (file)
@@ -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)
 {