diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2022-11-14 13:57:54 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-16 09:43:35 +0000 |
commit | 67fb43308f4b354f13aabcc66dd5d99bfbb7e838 (patch) | |
tree | 602bfba933e4730834de05eca3c8acf28d723d00 /include/net/netns | |
parent | 919dfa0b20ae56060dce0436eb710717f8987d18 (diff) | |
download | lwn-67fb43308f4b354f13aabcc66dd5d99bfbb7e838.tar.gz lwn-67fb43308f4b354f13aabcc66dd5d99bfbb7e838.zip |
udp: Set NULL to sk->sk_prot->h.udp_table.
We will soon introduce an optional per-netns hash table
for UDP.
This means we cannot use the global sk->sk_prot->h.udp_table
to fetch a UDP hash table.
Instead, set NULL to sk->sk_prot->h.udp_table for UDP and get
a proper table from net->ipv4.udp_table.
Note that we still need sk->sk_prot->h.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 'include/net/netns')
-rw-r--r-- | include/net/netns/ipv4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index 25f90bba4889..e4cc4d3cacc4 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h @@ -43,6 +43,7 @@ struct tcp_fastopen_context; struct netns_ipv4 { struct inet_timewait_death_row tcp_death_row; + struct udp_table *udp_table; #ifdef CONFIG_SYSCTL struct ctl_table_header *forw_hdr; |