From bd7bad9121be93045c69cda24b2d80e008586f59 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Tue, 6 Feb 2024 14:02:51 +0200 Subject: [PATCH] bgpd: Drop unused function bgp_evpn_attr_get_df_pref() Signed-off-by: Donatas Abraitis --- bgpd/bgp_evpn_mh.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bgpd/bgp_evpn_mh.h b/bgpd/bgp_evpn_mh.h index ee1f74989b77..cebabb9fd051 100644 --- a/bgpd/bgp_evpn_mh.h +++ b/bgpd/bgp_evpn_mh.h @@ -388,11 +388,6 @@ static inline bool bgp_evpn_attr_is_local_es(struct attr *attr) return attr ? !!(attr->es_flags & ATTR_ES_IS_LOCAL) : false; } -static inline uint32_t bgp_evpn_attr_get_df_pref(struct attr *attr) -{ - return (attr) ? attr->df_pref : 0; -} - static inline bool bgp_evpn_local_es_is_active(struct bgp_evpn_es *es) { return (es->flags & BGP_EVPNES_OPER_UP)