summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2025-02-13 16:04:12 +0100
committerLouis Scalbert <louis.scalbert@6wind.com>2025-02-13 16:04:33 +0100
commit85784be2ec164126941799de83c2f69bf5987c6c (patch)
treea107717b57c5df134e07a04a9e7cd0e762b8bb16
parentb5014d371cdb39a7734a6f679c1651cc3eefb74c (diff)
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 <louis.scalbert@6wind.com>
-rw-r--r--bgpd/bgp_route.c7
1 files changed, 3 insertions, 4 deletions
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);