add for support cmake with netdev_notify_recvcpu.c

Signed-off-by: daichuan <daichuan@xiaomi.com>
This commit is contained in:
daichuan 2024-06-12 10:50:15 +08:00 committed by Xiang Xiao
parent b5753d06f2
commit e48d5d8271
2 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,9 @@ config NETDEV_RSS
bool "Using hardware RSS (Receive Side Scaling) with network card"
default n
depends on SMP && NETDEV_IOCTL && NETDEV_WORK_THREAD
---help---
When the hardware supports RSS/aRFS function, provide the
hash value and CPU ID to the hardware driver.
comment "General Ethernet MAC Driver Options"

View File

@ -50,4 +50,8 @@ if(CONFIG_NETDEV_STATISTICS)
list(APPEND SRCS netdev_stats.c)
endif()
if(CONFIG_NETDEV_RSS)
list(APPEND SRCS netdev_notify_recvcpu.c)
endif()
target_sources(net PRIVATE ${SRCS})