net: Introduce possible_net_t
[firefly-linux-kernel-4.4.55.git] / include / net / inet_hashtables.h
index dd1950a7e2730e0024f1c82fac8ab20f9b533fe5..bcd64756e5fe7f8a05bbdb8c3de0d5a554ecb9d8 100644 (file)
@@ -76,9 +76,7 @@ struct inet_ehash_bucket {
  * ports are created in O(1) time?  I thought so. ;-)  -DaveM
  */
 struct inet_bind_bucket {
-#ifdef CONFIG_NET_NS
-       struct net              *ib_net;
-#endif
+       possible_net_t          ib_net;
        unsigned short          port;
        signed char             fastreuse;
        signed char             fastreuseport;