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

@@ -86,7 +86,7 @@ static void *worker_thread(void *arg)
}
stellar_polling_dispatch(mod_mgr);
packet_io_polling(pkt_io, thread_id);
packet_io_clean(pkt_io, thread_id);
if (nr_recv == 0)
{
packet_io_yield(pkt_io, thread_id);
@@ -211,7 +211,7 @@ void stellar_run(struct stellar *st)
usleep(1000); // 1ms
// only available in pcap mode
if (packet_io_isbreak(st->pkt_io))
if (packet_io_is_done(st->pkt_io))
{
ATOMIC_SET(&st->need_exit, 1);
break;