Skip to content

Commit

Permalink
zebra: remove if_table from the zebra NS
Browse files Browse the repository at this point in the history
Finish removing the if_table from the zebra NS struct.

Signed-off-by: Mark Stapp <[email protected]>
  • Loading branch information
Mark Stapp committed Oct 29, 2024
1 parent 8353cf5 commit b7263c0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions zebra/zebra_ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ static int zebra_ns_new(struct ns *ns)
zns->ns_id = ns->ns_id;

/* Do any needed per-NS data structure allocation. */
zns->if_table = route_table_init();
ifp_tree_init(&zns->ifp_tree);

return 0;
Expand Down Expand Up @@ -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)
{
if (zns->if_table)
route_table_finish(zns->if_table);
zns->if_table = NULL;

zebra_dplane_ns_enable(zns, false /*Disable*/);

kernel_terminate(zns, complete);
Expand Down
2 changes: 0 additions & 2 deletions zebra/zebra_ns.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ struct zebra_ns {
struct nlsock ge_netlink_cmd; /* command channel for generic netlink */
#endif

struct route_table *if_table;

/* Tree of interfaces in this ns */
struct ifp_tree_head ifp_tree;

Expand Down

0 comments on commit b7263c0

Please sign in to comment.