]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: Don't pass hashinfo to socket lookup helpers.
authorKuniyuki Iwashima <kuniyu@google.com>
Fri, 22 Aug 2025 19:06:59 +0000 (19:06 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Aug 2025 00:53:35 +0000 (17:53 -0700)
commitcb16f4b6c73df4be16b74099f826fea30ef72426
treebd86aba0c7340d967b8e32e5d6698240bab715a5
parent8150f3a44b17cded59c4cfb71efd59f0a293c48e
tcp: Don't pass hashinfo to socket lookup helpers.

These socket lookup functions required struct inet_hashinfo because
they are shared by TCP and DCCP.

  * __inet_lookup_established()
  * __inet_lookup_listener()
  * __inet6_lookup_established()
  * inet6_lookup_listener()

DCCP has gone, and we don't need to pass hashinfo down to them.

Let's fetch net->ipv4.tcp_death_row.hashinfo directly in the above
4 functions.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250822190803.540788-5-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
18 files changed:
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c
drivers/net/ethernet/netronome/nfp/crypto/tls.c
include/net/inet6_hashtables.h
include/net/inet_hashtables.h
net/core/filter.c
net/ipv4/esp4.c
net/ipv4/inet_diag.c
net/ipv4/inet_hashtables.c
net/ipv4/netfilter/nf_socket_ipv4.c
net/ipv4/netfilter/nf_tproxy_ipv4.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_offload.c
net/ipv6/esp6.c
net/ipv6/inet6_hashtables.c
net/ipv6/netfilter/nf_socket_ipv6.c
net/ipv6/netfilter/nf_tproxy_ipv6.c
net/ipv6/tcp_ipv6.c
net/ipv6/tcpv6_offload.c