mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
![Paolo Abeni](/assets/img/avatar_default.png)
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>
27 lines
481 B
C
27 lines
481 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __NETNS_CORE_H__
|
|
#define __NETNS_CORE_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct ctl_table_header;
|
|
struct prot_inuse;
|
|
struct cpumask;
|
|
|
|
struct netns_core {
|
|
/* core sysctls */
|
|
struct ctl_table_header *sysctl_hdr;
|
|
|
|
int sysctl_somaxconn;
|
|
u8 sysctl_txrehash;
|
|
|
|
#ifdef CONFIG_PROC_FS
|
|
struct prot_inuse __percpu *prot_inuse;
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_RPS) && IS_ENABLED(CONFIG_SYSCTL)
|
|
struct cpumask *rps_default_mask;
|
|
#endif
|
|
};
|
|
|
|
#endif
|