[PATCH] examples/kni: add interrupt mode to receive packets

2022-04-07 Thread Tianli Lai
kni application have two main-loop threads that they CPU utilization are up to 100 percent, this two theads are writing thread and reading thread. I thank set interrupt mode at reading thread would reduce this thread CPU utilization. Signed-off-by: Tianli Lai --- examples/kni/main.c | 135 ++

[PATCH] examples/kni: add interrupt mode to receive packets

2022-04-07 Thread Tianli Lai
kni application have two main-loop threads that they CPU utilization are up to 100 percent, this two theads are writing thread and reading thread. I thank set interrupt mode at reading thread would reduce this thread CPU utilization. Signed-off-by: Tianli Lai --- examples/kni/main.c | 107 ++