diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-01-19 06:03:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-24 17:53:01 -0500 |
commit | c445477d74ab3779d1386ab797fbb9b628eb9f64 (patch) | |
tree | 3ee70b7748c6c63a688f367e5ffd83fde21b87e3 /net/Kconfig | |
parent | c39649c331c70952700f99832b03f87e9d7f5b4b (diff) |
net: RPS: Enable hardware acceleration of RFS
Allow drivers for multiqueue hardware with flow filter tables to
accelerate RFS. The driver must:
1. Set net_device::rx_cpu_rmap to a cpu_rmap of the RX completion
IRQs (in queue order). This will provide a mapping from CPUs to the
queues for which completions are handled nearest to them.
2. Implement net_device_ops::ndo_rx_flow_steer. This operation adds
or replaces a filter steering the given flow to the given RX queue, if
possible.
3. Periodically remove filters for which rps_may_expire_flow() returns
true.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/Kconfig')
-rw-r--r-- | net/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/Kconfig b/net/Kconfig index 72840626284b..79cabf1ee68b 100644 --- a/net/Kconfig +++ b/net/Kconfig | |||
@@ -221,6 +221,12 @@ config RPS | |||
221 | depends on SMP && SYSFS && USE_GENERIC_SMP_HELPERS | 221 | depends on SMP && SYSFS && USE_GENERIC_SMP_HELPERS |
222 | default y | 222 | default y |
223 | 223 | ||
224 | config RFS_ACCEL | ||
225 | boolean | ||
226 | depends on RPS && GENERIC_HARDIRQS | ||
227 | select CPU_RMAP | ||
228 | default y | ||
229 | |||
224 | config XPS | 230 | config XPS |
225 | boolean | 231 | boolean |
226 | depends on SMP && SYSFS && USE_GENERIC_SMP_HELPERS | 232 | depends on SMP && SYSFS && USE_GENERIC_SMP_HELPERS |