From 93f533c3085f75ae1bf6b6b1604cfa211399c364 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 24 Sep 2021 11:05:29 -0400 Subject: [PATCH] zebra: remove zvrf->import_check_table The import_check_table is no longer used, so let's remove it. Signed-off-by: Donald Sharp --- zebra/zebra_vrf.c | 8 -------- zebra/zebra_vrf.h | 3 --- 2 files changed, 11 deletions(-) diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c index 4fbcc6f596..69b586d71e 100644 --- a/zebra/zebra_vrf.c +++ b/zebra/zebra_vrf.c @@ -150,10 +150,6 @@ static int zebra_vrf_enable(struct vrf *vrf) table = route_table_init(); table->cleanup = zebra_rnhtable_node_cleanup; zvrf->rnh_table[afi] = table; - - table = route_table_init(); - table->cleanup = zebra_rnhtable_node_cleanup; - zvrf->import_check_table[afi] = table; } /* Kick off any VxLAN-EVPN processing. */ @@ -196,8 +192,6 @@ static int zebra_vrf_disable(struct vrf *vrf) for (afi = AFI_IP; afi <= AFI_IP6; afi++) { route_table_finish(zvrf->rnh_table[afi]); zvrf->rnh_table[afi] = NULL; - route_table_finish(zvrf->import_check_table[afi]); - zvrf->import_check_table[afi] = NULL; for (safi = SAFI_UNICAST; safi <= SAFI_MULTICAST; safi++) rib_close_table(zvrf->table[afi][safi]); @@ -298,8 +292,6 @@ static int zebra_vrf_delete(struct vrf *vrf) if (zvrf->rnh_table[afi]) route_table_finish(zvrf->rnh_table[afi]); - if (zvrf->import_check_table[afi]) - route_table_finish(zvrf->import_check_table[afi]); } otable = otable_pop(&zvrf->other_tables); diff --git a/zebra/zebra_vrf.h b/zebra/zebra_vrf.h index eae8e37924..e6126a22ca 100644 --- a/zebra/zebra_vrf.h +++ b/zebra/zebra_vrf.h @@ -79,9 +79,6 @@ struct zebra_vrf { /* Recursive Nexthop table */ struct route_table *rnh_table[AFI_MAX]; - /* Import check table (used mostly by BGP */ - struct route_table *import_check_table[AFI_MAX]; - struct otable_head other_tables; /* 2nd pointer type used primarily to quell a warning on -- 2.39.5