]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rxrpc: Store the DATA serial in the txqueue and use this in RTT calc
authorDavid Howells <dhowells@redhat.com>
Wed, 4 Dec 2024 07:46:52 +0000 (07:46 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Dec 2024 21:48:29 +0000 (13:48 -0800)
commitdcdff0d8e3b61033b28c72926997d458949fcc05
treef5e12c4ec0010236fbdbdbb1223276f9531e981a
parent9b052c6b92f9316d670bf50566f70e183d0d19cb
rxrpc: Store the DATA serial in the txqueue and use this in RTT calc

Store the serial number set on a DATA packet at the point of transmission
in the rxrpc_txqueue struct and when an ACK is received, match the
reference number in the ACK by trawling the txqueue rather than sharing an
RTT table with ACK RTT.  This can be done as part of Tx queue rotation.

This means we have a lot more RTT samples available and is faster to search
with all the serial numbers packed together into a few cachelines rather
than being hung off different txbufs.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Link: https://patch.msgid.link/20241204074710.990092-25-dhowells@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/trace/events/rxrpc.h
net/rxrpc/ar-internal.h
net/rxrpc/call_event.c
net/rxrpc/input.c
net/rxrpc/output.c