]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: Remove sk_protocol test for tcp_twsk_unique().
authorKuniyuki Iwashima <kuniyu@google.com>
Fri, 22 Aug 2025 19:06:56 +0000 (19:06 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Aug 2025 00:53:35 +0000 (17:53 -0700)
commit9db0163e3cad57a36ac335308c17550c6911b7df
tree30e13d86445c24072658b80dc82f6bd1cd3863de
parentee6960bdbb74499516261b84eadb19acc01cb361
tcp: Remove sk_protocol test for tcp_twsk_unique().

Commit 383eed2de529 ("tcp: get rid of twsk_unique()") added
sk->sk_protocol test in  __inet_check_established() and
__inet6_check_established() to remove twsk_unique() and call
tcp_twsk_unique() directly.

DCCP has gone, and the condition is always true.

Let's remove the sk_protocol test.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250822190803.540788-2-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/inet_hashtables.c
net/ipv6/inet6_hashtables.c