net: introduce default_rps_mask netns attribute
authorPaolo Abeni <pabeni@redhat.com>
Tue, 7 Feb 2023 18:44:57 +0000 (19:44 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Feb 2023 01:45:55 +0000 (17:45 -0800)
commit605cfa1b1090b5d9e227d8a8f7d08fdd04f07724
tree83e0dd63d02fee996caee33f2c76d5142b170e18
parent370ca718fd5e1fd45ccfdf7a9d76d010f561e607
net: introduce default_rps_mask netns attribute

If RPS is enabled, this allows configuring a default rps
mask, which is effective since receive queue creation time.

A default RPS mask allows the system admin to ensure proper
isolation, avoiding races at network namespace or device
creation time.

The default RPS mask is initially empty, and can be
modified via a newly added sysctl entry.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/admin-guide/sysctl/net.rst
include/linux/netdevice.h
net/core/net-sysfs.c
net/core/sysctl_net_core.c