aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2023-02-07 19:44:57 +0100
committerJakub Kicinski <kuba@kernel.org>2023-02-09 17:45:55 -0800
commit605cfa1b1090b5d9e227d8a8f7d08fdd04f07724 (patch)
tree83e0dd63d02fee996caee33f2c76d5142b170e18 /include/linux/netdevice.h
parent370ca718fd5e1fd45ccfdf7a9d76d010f561e607 (diff)
downloadlinux-605cfa1b1090b5d9e227d8a8f7d08fdd04f07724.tar.gz
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>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index d5ef4c1fedd247..38ab96ae0d68b7 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -223,6 +223,7 @@ struct net_device_core_stats {
#include <linux/static_key.h>
extern struct static_key_false rps_needed;
extern struct static_key_false rfs_needed;
+extern struct cpumask rps_default_mask;
#endif
struct neighbour;