void flow_cmd_finalize(void) { flow_cmd_dump_finalize(); flow_cmd_mod_finalize(); lagopus_hashmap_destroy(&sub_cmd_table, true); sub_cmd_table = NULL; lagopus_hashmap_destroy(&sub_cmd_not_name_table, true); sub_cmd_not_name_table = NULL; lagopus_hashmap_destroy(&dump_opt_table, true); dump_opt_table = NULL; lagopus_hashmap_destroy(&config_opt_table, true); config_opt_table = NULL; }
/** * Finalize. */ void rib_notifier_fini() { if (&ifinfo_hashmap != NULL) { lagopus_hashmap_destroy(&ifinfo_hashmap, true); } lagopus_rwlock_destroy(&ifinfo_lock); }
void ofp_bridgeq_mgr_destroy(void) { lagopus_hashmap_destroy(&bridgeq_table, true); bridgeq_table = NULL; lagopus_mutex_destroy(&lock); lock = NULL; }
static inline void s_final(void) { lagopus_bbq_destroy(&s_idle_tsk_q, true); lagopus_bbq_destroy(&s_urgent_tsk_q, true); lagopus_hashmap_destroy(&s_tsk_tbl, true); lagopus_cond_destroy(&s_sched_cnd); lagopus_mutex_destroy(&s_lck); lagopus_mutex_destroy(&s_sched_lck); }
static inline void s_final_numa_thingies(void) { if (s_numa_nodes != NULL) { free((void *)s_numa_nodes); if (s_tbl != NULL) { (void)lagopus_hashmap_iterate(&s_tbl, s_free_all, NULL); (void)lagopus_hashmap_destroy(&s_tbl, true); } lagopus_msg_debug(5, "The NUMA aware memory allocator is finalized.\n"); } }
void snmpmgr_finalize(void) { if (snmp_lock == NULL) { lagopus_mutex_destroy(&snmp_lock); snmp_lock = NULL; } if (snmp_state_lock == NULL) { lagopus_mutex_destroy(&snmp_state_lock); snmp_state_lock = NULL; } if (iftable_entry_hash != NULL) { lagopus_hashmap_destroy(&iftable_entry_hash, true); iftable_entry_hash = NULL; } state = SNMPMGR_NONE; }
void tearDown(void) { TEST_ASSERT_NOT_NULL(bridge); TEST_ASSERT_NOT_NULL(flowdb); TEST_ASSERT_NOT_NULL(ports); TEST_ASSERT_NOT_NULL(group_table); TEST_ASSERT_TRUE(LAGOPUS_RESULT_OK == dp_bridge_destroy(bridge_name)); lagopus_hashmap_destroy(&ports, false); group_table_free(group_table); ports = NULL; group_table = NULL; flowdb = NULL; bridge = NULL; }
static void s_final(void) { lagopus_hashmap_destroy(&s_ps_name_tbl, true); lagopus_hashmap_destroy(&s_ps_obj_tbl, true); }
static void destroy_flowinfo_metadata(struct flowinfo *self) { lagopus_hashmap_destroy(&self->hashmap, true); free(self); }
static void destroy_flowinfo_ipv4_dst(struct flowinfo *self) { lagopus_hashmap_destroy(&self->hashmap, true); free(self); }
static inline void s_final(void) { datastore_destroy_interp(&s_interp); lagopus_hashmap_destroy(&s_tbl, true); }