From: Louis Scalbert Date: Thu, 13 Feb 2025 15:04:12 +0000 (+0100) Subject: bgpd: remove unused afi arg from bgp_cleanup_table X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=85784be2ec164126941799de83c2f69bf5987c6c;p=matthieu%2Ffrr.git bgpd: remove unused afi arg from bgp_cleanup_table Remove unused AFI argument from bgp_cleanup_table() Fixes: ec6e09c271 ("bgpd: fix flushing ipv6 flowspec entries when peering stops") Signed-off-by: Louis Scalbert --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index c125252c34..a86c7618cf 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -6683,8 +6683,7 @@ bool bgp_inbound_policy_exists(struct peer *peer, struct bgp_filter *filter) return false; } -static void bgp_cleanup_table(struct bgp *bgp, struct bgp_table *table, - afi_t afi, safi_t safi) +static void bgp_cleanup_table(struct bgp *bgp, struct bgp_table *table, safi_t safi) { struct bgp_dest *dest; struct bgp_path_info *pi; @@ -6726,7 +6725,7 @@ void bgp_cleanup_routes(struct bgp *bgp) FOREACH_AFI_SAFI (afi, safi) { if (safi != SAFI_MPLS_VPN && safi != SAFI_ENCAP && safi != SAFI_EVPN) { - bgp_cleanup_table(bgp, bgp->rib[afi][safi], afi, safi); + bgp_cleanup_table(bgp, bgp->rib[afi][safi], safi); continue; } @@ -6740,7 +6739,7 @@ void bgp_cleanup_routes(struct bgp *bgp) table = bgp_dest_get_bgp_table_info(dest); if (!table) continue; - bgp_cleanup_table(bgp, table, afi, safi); + bgp_cleanup_table(bgp, table, safi); bgp_table_finish(&table); bgp_dest_set_bgp_table_info(dest, NULL); dest = bgp_dest_unlock_node(dest);