]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: move recvmsg_inq to tcp_sock_read_txrx
authorEric Dumazet <edumazet@google.com>
Fri, 19 Sep 2025 20:48:53 +0000 (20:48 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Sep 2025 00:55:25 +0000 (17:55 -0700)
commit969904dcd77dbb0a773d66cddaa59eccc6415d03
treea736f94372a0bebe7877da8c09a7f5df6624e087
parent1b44d700023e77dd92821e7811db825e75a1a394
tcp: move recvmsg_inq to tcp_sock_read_txrx

Fill a hole in tcp_sock_read_txrx, instead of possibly wasting
a cache line.

Note that tcp_recvmsg_locked() is also reading tp->repair,
so this removes one cache line miss in tcp recvmsg().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250919204856.2977245-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/net_cachelines/tcp_sock.rst
include/linux/tcp.h