summaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@amazon.com>2022-11-14 22:57:55 +0100
committerDavid S. Miller <davem@davemloft.net>2022-11-16 10:43:35 +0100
commit478aee5d6bf617c932f4e9c2981f17e86e093fc5 (patch)
tree0a4a5fb3d61db69915c4846fdef3ecc2f28d0d29 /net/ipv6/udp.c
parentudp: Set NULL to sk->sk_prot->h.udp_table. (diff)
downloadlinux-478aee5d6bf617c932f4e9c2981f17e86e093fc5.tar.xz
linux-478aee5d6bf617c932f4e9c2981f17e86e093fc5.zip
udp: Set NULL to udp_seq_afinfo.udp_table.
We will soon introduce an optional per-netns hash table for UDP. This means we cannot use the global udp_seq_afinfo.udp_table to fetch a UDP hash table. Instead, set NULL to udp_seq_afinfo.udp_table for UDP and get a proper table from net->ipv4.udp_table. Note that we still need udp_seq_afinfo.udp_table for UDP LITE. Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv6/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index bbd6dc398f3b..c3dee1f8d3bd 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -1724,7 +1724,7 @@ EXPORT_SYMBOL(udp6_seq_ops);
static struct udp_seq_afinfo udp6_seq_afinfo = {
.family = AF_INET6,
- .udp_table = &udp_table,
+ .udp_table = NULL,
};
int __net_init udp6_proc_init(struct net *net)