This drops an unused parameter and groups the calls to these functions
with ofctrl_destroy() in each case.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
sbrec_init();
ofctrl_init();
+ pipeline_init();
/* Connect to OVS OVSDB instance. We do not monitor all tables by
* default, so modules must register their interest explicitly. */
binding_register_ovs_idl(ctx.ovs_idl);
physical_register_ovs_idl(ctx.ovs_idl);
- pipeline_init();
-
get_initial_snapshot(ctx.ovs_idl);
char *ovnsb_remote = get_ovnsb_remote(ctx.ovs_idl);
}
unixctl_server_destroy(unixctl);
- pipeline_destroy(&ctx);
+ pipeline_destroy();
ofctrl_destroy();
idl_loop_destroy(&ovs_idl_loop);
}
void
-pipeline_destroy(struct controller_ctx *ctx OVS_UNUSED)
+pipeline_destroy(void)
{
expr_symtab_destroy(&symtab);
ldp_destroy();
void pipeline_init(void);
void pipeline_run(struct controller_ctx *, struct hmap *flow_table);
-void pipeline_destroy(struct controller_ctx *);
+void pipeline_destroy(void);
uint32_t ldp_to_integer(const struct uuid *logical_datapath);