]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tcp: Remove sk->sk_prot->orphan_count.
authorKuniyuki Iwashima <kuniyu@google.com>
Fri, 29 Aug 2025 21:56:38 +0000 (21:56 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Sep 2025 19:52:09 +0000 (12:52 -0700)
commit7051b54fb5aa2d0b77657aef7c272471b36c0327
tree3ad8b7416514c115a4549ee8f52fcab5c130b7af
parent864ecc4a6dade82d3f70eab43dad0e277aa6fc78
tcp: Remove sk->sk_prot->orphan_count.

TCP tracks the number of orphaned (SOCK_DEAD but not yet destructed)
sockets in tcp_orphan_count.

In some code that was shared with DCCP, tcp_orphan_count is referenced
via sk->sk_prot->orphan_count.

Let's reference tcp_orphan_count directly.

inet_csk_prepare_for_destroy_sock() is moved to inet_connection_sock.c
due to header dependency.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250829215641.711664-1-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.h
include/net/inet_connection_sock.h
include/net/sock.h
include/net/tcp.h
net/ipv4/inet_connection_sock.c
net/ipv4/inet_hashtables.c
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c