packet IO support output fieldstat

This commit is contained in:
luwenpeng
2024-10-31 16:25:37 +08:00
parent d56cda3d9a
commit 89971d4b0a
14 changed files with 629 additions and 469 deletions

View File

@@ -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;
}