Skip to content

net: introduce rps_default_mask

Paolo Abeni linux-doc linux-kselftest netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 9 repliesIn review
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- fix sparse warning in patch 2/3

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net/sysctl: factor-out netdev_rx_queue_set_rps_mask() helpernet/core/net-sysfs.c+36 -300 replies
2/3net/core: introduce default_rps_mask netns attributeDocumentation/admin-guide/sysctl/net.rst include/linux/netdevice.h net/core/net-sysfs.c +1 more+72 -00 replies
3/3self-tests: introduce self-tests for RPS default masktools/testing/selftests/net/Makefile tools/testing/selftests/net/config tools/testing/selftests/net/rps_default_mask.sh+61 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/3] net: introduce rps_default_mask

Real-time setups try hard to ensure proper isolation between time critical applications and e.g. network processing performed by the network stack in softirq and RPS is used to move the softirq activity away from the isolated core.

If the network configuration is dynamic, with netns and devices routinely created at run-time, enforcing the correct RPS setting on each newly created device allowing to transient bad configuration became complex.

These series try to address the above, introducing a new sysctl knob: rps_default_mask. The new sysctl entry allows configuring a systemwide RPS mask, to be enforced since receive queue creation time without any fourther per device configuration required.

Additionally, a simple self-test is introduced to check the rps_default_mask behavior.

v1 -> v2:
- fix sparse warning in patch 2/3

Paolo Abeni (3):
net/sysctl: factor-out netdev_rx_queue_set_rps_mask() helper net/core: introduce default_rps_mask netns attribute
self-tests: introduce self-tests for RPS default mask

 Documentation/admin-guide/sysctl/net.rst      |  6 ++
 include/linux/netdevice.h                     |  1 +
 net/core/net-sysfs.c                          | 73 +++++++++++--------
 net/core/sysctl_net_core.c                    | 58 +++++++++++++++
 tools/testing/selftests/net/Makefile          |  1 +
 tools/testing/selftests/net/config            |  3 +
 .../testing/selftests/net/rps_default_mask.sh | 57 +++++++++++++++
 7 files changed, 169 insertions(+), 30 deletions(-)
 create mode 100755 tools/testing/selftests/net/rps_default_mask.sh
Signature · 1 line
2.26.2