Skip to content

RFC RFS hardware acceleration (v2)

Ben Hutchings lkml netdev 1 version In review

Get series with b4
b4 am 1290192176.2671.38.camel@bwh-desktop

Versions newest first

  1. v1 RFC Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5genirq: Add IRQ affinity notifiersinclude/linux/interrupt.h include/linux/irqdesc.h kernel/irq/manage.c+125 -00 replies
2/5lib: cpu_rmap: CPU affinity reverse-mappinginclude/linux/cpu_rmap.h lib/Kconfig lib/Makefile +1 more+351 -00 replies
3/5net: RPS: Enable hardware accelerationinclude/linux/netdevice.h net/Kconfig net/core/dev.c+112 -90 replies
4/5sfc: Limit filter search depth further for performance hints (i.e. RFS)drivers/net/sfc/filter.c+9 -40 replies
5/5sfc: Implement RFS accelerationdrivers/net/sfc/Kconfig drivers/net/sfc/efx.c drivers/net/sfc/efx.h +1 more+170 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC][PATCH 0/5] RFS hardware acceleration (v2)

This patch series extends RFS to use hardware RX filters where available. Depending on the number of hardware RX queues and their IRQs' affinity, this should reduce the need for IPIs or at least get packets delivered to the right NUMA node.

The first patch implements IRQ affinity notifiers, based on the outline that Thomas Gleixner wrote in response to the previous version of this patch series.

The second patch is a generalisation of the CPU affinity reverse- mapping, plus functions to maintain such a mapping based on the new IRQ affinity notifiers.

The remaining patches add the RFS acceleration hooks and an implementation in the sfc driver. These are largely unchanged from the previous version of this patch series; I haven't yet had the time to do further tuning yet. However I have done some more benchmarking and will send some results in a separate follow-up to this.

Ben.

Ben Hutchings (5):
genirq: Add IRQ affinity notifiers
lib: cpu_rmap: CPU affinity reverse-mapping
net: RPS: Enable hardware acceleration
sfc: Limit filter search depth further for performance hints (i.e.
RFS)
sfc: Implement RFS acceleration

 drivers/net/sfc/Kconfig   |    4 +
 drivers/net/sfc/efx.c     |   66 ++++++++++--
 drivers/net/sfc/efx.h     |    9 ++
 drivers/net/sfc/filter.c  |  113 ++++++++++++++++++-
 include/linux/cpu_rmap.h  |   73 ++++++++++++
 include/linux/interrupt.h |   41 +++++++
 include/linux/irqdesc.h   |    3 +
 include/linux/netdevice.h |   31 +++++-
 kernel/irq/manage.c       |   81 +++++++++++++
 lib/Kconfig               |    4 +
 lib/Makefile              |    2 +
 lib/cpu_rmap.c            |  272 +++++++++++++++++++++++++++++++++++++++++++++
 net/Kconfig               |    1 +
 net/core/dev.c            |   89 ++++++++++++++-
 14 files changed, 767 insertions(+), 22 deletions(-)
 create mode 100644 include/linux/cpu_rmap.h
 create mode 100644 lib/cpu_rmap.c
Signature · 7 lines
1.7.3.2


-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.