OSDN Git Service

net: make default_rps_mask a per netns attribute
authorPaolo Abeni <pabeni@redhat.com>
Fri, 17 Feb 2023 12:28:49 +0000 (13:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2023 11:22:54 +0000 (11:22 +0000)
commit50bcfe8df7c73ce51762f65d218b4ef0cc5da3ee
tree095c3d2d38e056301ab0d59842e38fa85e331d0f
parente469b6268d8cb7c6cf6b9cd5ce7f403de695627f
net: make default_rps_mask a per netns attribute

That really was meant to be a per netns attribute from the beginning.

The idea is that once proper isolation is in place in the main
namespace, additional demux in the child namespaces will be redundant.
Let's make child netns default rps mask empty by default.

To avoid bloating the netns with a possibly large cpumask, allocate
it on-demand during the first write operation.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/netns/core.h
net/core/net-sysfs.c
net/core/sysctl_net_core.c