netdev_upperhalf: add direct rx mode

avoid packet processing delays caused by task switching,
to support those applications that are extremely time-sensitive.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu
2025-06-29 19:14:47 +08:00
committed by Donny(董九柱)
parent 2a5de4ebc6
commit b0ab56aca2
2 changed files with 21 additions and 2 deletions
+1
View File
@@ -90,6 +90,7 @@ enum netpkt_type_e
enum netdev_rx_e
{
NETDEV_RX_WORK, /* Use work queue thread */
NETDEV_RX_DIRECT, /* Directly based on the current thread */
NETDEV_RX_THREAD, /* Upper half dedicated thread */
NETDEV_RX_THREAD_RSS /* RSS mode, upper half thread */
};