mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
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:
parent
8353cf5d4c
commit
b7263c0548
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue