[PATCH] examples/packet_ordering: fix segfault in disable_reorder mode

2023-12-08 Thread Qian Hao
packet_ordering example works in two modes (--disable-reorder): - When reorder is enabled: rx_thread - N*worker_thread - send_thread - When reorder is disabled: rx_thread - N*worker_thread - tx_thread N parallel worker_thread(s) generate out-of-order packets. When reorder is enabled, send_thre

[PATCH v2] examples/packet_ordering: fix segfault in disable_reorder mode

2023-12-13 Thread Qian Hao
is inlined by the compiler to prevent any performance loss. Signed-off-by: Qian Hao --- examples/packet_ordering/main.c | 32 +--- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/examples/packet_ordering/main.c b/examples/packet_ordering/main.c index

[PATCH v3] examples/packet_ordering: fix segfault in disable_reorder mode

2023-12-13 Thread Qian Hao
test is inlined by the compiler to prevent any performance loss. Signed-off-by: Qian Hao --- examples/packet_ordering/main.c | 32 +--- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/examples/packet_ordering/main.c b/examples/packet_ordering/main.c index