zebra: remove if_table from the zebra NS

Finish removing the if_table from the zebra NS struct.

Signed-off-by: Mark Stapp <mjs@cisco.com>
This commit is contained in:
Mark Stapp 2024-10-24 14:52:21 -07:00
parent 8353cf5d4c
commit b7263c0548
2 changed files with 0 additions and 7 deletions

View file

@ -234,7 +234,6 @@ static int zebra_ns_new(struct ns *ns)
zns->ns_id = ns->ns_id; zns->ns_id = ns->ns_id;
/* Do any needed per-NS data structure allocation. */ /* Do any needed per-NS data structure allocation. */
zns->if_table = route_table_init();
ifp_tree_init(&zns->ifp_tree); ifp_tree_init(&zns->ifp_tree);
return 0; return 0;
@ -334,10 +333,6 @@ int zebra_ns_enable(ns_id_t ns_id, void **info)
*/ */
static int zebra_ns_disable_internal(struct zebra_ns *zns, bool complete) static int zebra_ns_disable_internal(struct zebra_ns *zns, bool complete)
{ {
if (zns->if_table)
route_table_finish(zns->if_table);
zns->if_table = NULL;
zebra_dplane_ns_enable(zns, false /*Disable*/); zebra_dplane_ns_enable(zns, false /*Disable*/);
kernel_terminate(zns, complete); kernel_terminate(zns, complete);

View file

@ -67,8 +67,6 @@ struct zebra_ns {
struct nlsock ge_netlink_cmd; /* command channel for generic netlink */ struct nlsock ge_netlink_cmd; /* command channel for generic netlink */
#endif #endif
struct route_table *if_table;
/* Tree of interfaces in this ns */ /* Tree of interfaces in this ns */
struct ifp_tree_head ifp_tree; struct ifp_tree_head ifp_tree;