mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
net/netdev: Support dedicated thread in upper half driver
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user