]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: remove zvrf->import_check_table
authorDonald Sharp <sharpd@nvidia.com>
Fri, 24 Sep 2021 15:05:29 +0000 (11:05 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 27 Sep 2021 16:38:08 +0000 (12:38 -0400)
The import_check_table is no longer used, so let's remove it.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_vrf.c
zebra/zebra_vrf.h

index 4fbcc6f596479de406eabcdf9fe86bf793cac1fb..69b586d71edb868ff4c1154243c6ad021fffbf26 100644 (file)
@@ -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);
index eae8e3792463585e399104d4fd41e125f85e4992..e6126a22ca922f2d193661b6b41780b1c01a107e 100644 (file)
@@ -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