mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
net: allow rps/rfs related configs to be switched
After John Sperbeck reported a compile error if the CONFIG_RFS_ACCEL is off, I found that I cannot easily enable/disable the config because of lack of the prompt when using 'make menuconfig'. Therefore, I decided to change rps/rfc related configs altogether. Signed-off-by: Jason Xing <kernelxing@tencent.com> Link: https://lore.kernel.org/r/20240605022932.33703-1-kerneljasonxing@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
98aa546af5
commit
9b6a30febd
1 changed files with 9 additions and 3 deletions
12
net/Kconfig
12
net/Kconfig
|
@ -290,15 +290,21 @@ config MAX_SKB_FRAGS
|
||||||
If unsure, say 17.
|
If unsure, say 17.
|
||||||
|
|
||||||
config RPS
|
config RPS
|
||||||
bool
|
bool "Receive packet steering"
|
||||||
depends on SMP && SYSFS
|
depends on SMP && SYSFS
|
||||||
default y
|
default y
|
||||||
|
help
|
||||||
|
Software receive side packet steering (RPS) distributes the
|
||||||
|
load of received packet processing across multiple CPUs.
|
||||||
|
|
||||||
config RFS_ACCEL
|
config RFS_ACCEL
|
||||||
bool
|
bool "Hardware acceleration of RFS"
|
||||||
depends on RPS
|
depends on RPS
|
||||||
select CPU_RMAP
|
select CPU_RMAP
|
||||||
default y
|
default y
|
||||||
|
help
|
||||||
|
Allowing drivers for multiqueue hardware with flow filter tables to
|
||||||
|
accelerate RFS.
|
||||||
|
|
||||||
config SOCK_RX_QUEUE_MAPPING
|
config SOCK_RX_QUEUE_MAPPING
|
||||||
bool
|
bool
|
||||||
|
@ -351,7 +357,7 @@ config BPF_STREAM_PARSER
|
||||||
BPF_MAP_TYPE_SOCKMAP.
|
BPF_MAP_TYPE_SOCKMAP.
|
||||||
|
|
||||||
config NET_FLOW_LIMIT
|
config NET_FLOW_LIMIT
|
||||||
bool
|
bool "Net flow limit"
|
||||||
depends on RPS
|
depends on RPS
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
|
|
Loading…
Add table
Reference in a new issue