]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: move sk_uid and sk_protocol to sock_read_tx
authorEric Dumazet <edumazet@google.com>
Fri, 19 Sep 2025 20:48:49 +0000 (20:48 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Sep 2025 00:55:24 +0000 (17:55 -0700)
commit17b14d235f58155a05cd9371e4559361ca3c67da
tree10700c5d852eac1628a931213220f02d03d294dc
parent4238cbf6ee27cd158e7407e4fef36088028a7b86
net: move sk_uid and sk_protocol to sock_read_tx

sk_uid and sk_protocol are read from inet6_csk_route_socket()
for each TCP transmit.

Also read from udpv6_sendmsg(), udp_sendmsg() and others.

Move them to sock_read_tx for better cache locality.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250919204856.2977245-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h
net/core/sock.c