summaryrefslogtreecommitdiff
path: root/include/net/protocol.h
diff options
context:
space:
mode:
authorYejune Deng <yejune.deng@gmail.com>2021-05-17 15:22:05 +0300
committerDavid S. Miller <davem@davemloft.net>2021-05-18 01:29:35 +0300
commit5796254e467bf1cff002df65fbb53ecef6a0e060 (patch)
treeca70e2099a69aaa37e6b1b4372edacce5040d0ca /include/net/protocol.h
parent609c8ae87966b60ace1ea70624b566bf686d43c9 (diff)
downloadlinux-5796254e467bf1cff002df65fbb53ecef6a0e060.tar.xz
net: Remove the member netns_ok
Every protocol has the 'netns_ok' member and it is euqal to 1. The 'if (!prot->netns_ok)' always false in inet_add_protocol(). Signed-off-by: Yejune Deng <yejunedeng@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/protocol.h')
-rw-r--r--include/net/protocol.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/protocol.h b/include/net/protocol.h
index 2b778e1d2d8f..f51c06ae365f 100644
--- a/include/net/protocol.h
+++ b/include/net/protocol.h
@@ -43,7 +43,6 @@ struct net_protocol {
int (*err_handler)(struct sk_buff *skb, u32 info);
unsigned int no_policy:1,
- netns_ok:1,
/* does the protocol do more stringent
* icmp tag validation than simple
* socket lookup?