aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
authorYejune Deng <yejune.deng@gmail.com>2021-05-17 20:22:05 +0800
committerDavid S. Miller <davem@davemloft.net>2021-05-17 15:29:35 -0700
commit5796254e467bf1cff002df65fbb53ecef6a0e060 (patch)
treeca70e2099a69aaa37e6b1b4372edacce5040d0ca /net/ipv4/ipmr.c
parentMerge branch 'mlxsw-next' (diff)
downloadwireguard-linux-5796254e467bf1cff002df65fbb53ecef6a0e060.tar.xz
wireguard-linux-5796254e467bf1cff002df65fbb53ecef6a0e060.zip
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 'net/ipv4/ipmr.c')
-rw-r--r--net/ipv4/ipmr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index 939792a38814..12b564b1ecb4 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -3007,7 +3007,6 @@ static const struct seq_operations ipmr_mfc_seq_ops = {
#ifdef CONFIG_IP_PIMSM_V2
static const struct net_protocol pim_protocol = {
.handler = pim_rcv,
- .netns_ok = 1,
};
#endif