net/netdev: Support dedicated thread in upper half driver

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
Zhe Weng
2023-01-17 16:49:28 +08:00
committed by Xiang Xiao
parent f21742899f
commit 60e66d5e29
2 changed files with 124 additions and 11 deletions
+25
View File
@@ -20,6 +20,31 @@ menuconfig NETDEVICES
if NETDEVICES
comment "Upper-half Network Device Driver Options"
choice
prompt "Netdev poll worker"
config NETDEV_LPWORK_THREAD
bool "Use low-priority worker thread to do netdev poll"
depends on SCHED_LPWORK
config NETDEV_HPWORK_THREAD
bool "Use high-priority worker thread to do netdev poll"
depends on SCHED_HPWORK
config NETDEV_WORK_THREAD
bool "Use a dedicated work thread to do netdev poll"
endchoice # Netdev poll worker
config NETDEV_WORK_THREAD_PRIORITY
int "Priority of work poll thread"
default 100
depends on NETDEV_WORK_THREAD
---help---
The priority of work poll thread in netdev.
comment "General Ethernet MAC Driver Options"
config NET_RPMSG_DRV