You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[NETNS]: Introduce a netns_core structure.
There's already some stuff on the struct net, that should better be folded into netns_core structure. I'm making the per-proto inuse counter be per-net also, which is also a candidate for this, so introduce this structure and populate it a bit. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3edf8fa5cc
commit
8efa6e93cb
@@ -8,6 +8,7 @@
|
||||
#include <linux/workqueue.h>
|
||||
#include <linux/list.h>
|
||||
|
||||
#include <net/netns/core.h>
|
||||
#include <net/netns/unix.h>
|
||||
#include <net/netns/packet.h>
|
||||
#include <net/netns/ipv4.h>
|
||||
@@ -46,10 +47,7 @@ struct net {
|
||||
|
||||
struct sock *rtnl; /* rtnetlink socket */
|
||||
|
||||
/* core sysctls */
|
||||
struct ctl_table_header *sysctl_core_hdr;
|
||||
int sysctl_somaxconn;
|
||||
|
||||
struct netns_core core;
|
||||
struct netns_packet packet;
|
||||
struct netns_unix unx;
|
||||
struct netns_ipv4 ipv4;
|
||||
|
||||
Reference in New Issue
Block a user