mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 05:28:51 +00:00
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>
This commit is contained in:
parent
b5014d371c
commit
85784be2ec
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user