diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 17600ddc06..a16b62eb67 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -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" diff --git a/net/netdev/CMakeLists.txt b/net/netdev/CMakeLists.txt index d2b8cf8ccc..8f58adf176 100644 --- a/net/netdev/CMakeLists.txt +++ b/net/netdev/CMakeLists.txt @@ -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})