YOSHIFUJI Hideaki / ???? wrote: > Introduce per-sock inlines: sock_net(), sock_net_set(). > Without CONFIG_NET_NS, no namespace other than &init_net exists. > Let's explicitly define them to help compiler optimizations. > diff --git a/include/net/sock.h b/include/net/sock.h > index b433b1e..7e0d4a0 100644 > --- a/include/net/sock.h > +++ b/include/net/sock.h > @@ -126,7 +126,9 @@ struct sock_common { > atomic_t skc_refcnt; > unsigned int skc_hash; > struct proto *skc_prot; > +#ifdef CONFIG_NET_NS > struct net *skc_net; > +#endif > }; net/ipv4/inet_timewait_sock.c: In function ‘inet_twsk_alloc’: net/ipv4/inet_timewait_sock.c:127: error: ‘struct sock_common’ has no member named ‘skc_net’ Maybe this was the issue you already found yourself, patch below. -Brian Signed-off-by: Brian Haley