]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: Don't pass hashinfo to inet_diag helpers.
authorKuniyuki Iwashima <kuniyu@google.com>
Fri, 22 Aug 2025 19:07:00 +0000 (19:07 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Aug 2025 00:53:36 +0000 (17:53 -0700)
commitf1241200cd66b3e25fd2a44dd961d9720e965aa1
tree43be3c2a725feb7accb02d344ccbff77ef62c2a3
parentcb16f4b6c73df4be16b74099f826fea30ef72426
tcp: Don't pass hashinfo to inet_diag helpers.

These inet_diag functions required struct inet_hashinfo because
they are shared by TCP and DCCP:

  * inet_diag_dump_icsk()
  * inet_diag_dump_one_icsk()
  * inet_diag_find_one_icsk()

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 first
2 functions.

Note that inet_diag_find_one_icsk() don't need hashinfo since the
previous patch.

We will move TCP-specific functions to tcp_diag.c in the next patch.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250822190803.540788-6-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/inet_diag.h
net/ipv4/inet_diag.c
net/ipv4/tcp_diag.c