packet IO support output fieldstat
This commit is contained in:
@@ -516,6 +516,16 @@ void session_manager_clean(struct session_manager *sess_mgr, uint16_t thread_id)
|
||||
mq_runtime_dispatch(mq_rte);
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
// flush stat before free
|
||||
for (int i = 0; i < SESS_MGR_STAT_MAX; i++)
|
||||
{
|
||||
uint64_t val = session_manager_stat_get(stat, i);
|
||||
fieldstat_easy_counter_set(sess_mgr->fs, thread_id, sess_mgr->stat_idx[i], NULL, 0, val);
|
||||
}
|
||||
|
||||
>>>>>>> 29ffae8 (packet IO support output fieldstat)
|
||||
session_manager_rte_free(sess_mgr->rte[thread_id]);
|
||||
sess_mgr->rte[thread_id] = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user