]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: preserve const qualifier in tcp_rsk() and inet_rsk()
authorEric Dumazet <edumazet@google.com>
Tue, 20 Jan 2026 12:53:53 +0000 (12:53 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 03:20:04 +0000 (19:20 -0800)
commita4674aa58be53921f2aba62e143cc338d6ab142c
tree3d9f532370c447ac8d36768f866bdfb362ab8341
parent1b58c94e9cf928970d5287550d3005389b198ff9
tcp: preserve const qualifier in tcp_rsk() and inet_rsk()

We can change tcp_rsk() and inet_rsk() to propagate their argument
const qualifier thanks to container_of_const().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260120125353.1470456-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/tcp.h
include/net/inet_sock.h
include/trace/events/tcp.h
net/ipv4/inet_connection_sock.c
net/ipv6/inet6_connection_sock.c