]> www.infradead.org Git - users/dwmw2/linux.git/commit
rxrpc: Clean up Tx header flags generation handling
authorDavid Howells <dhowells@redhat.com>
Wed, 4 Dec 2024 07:46:32 +0000 (07:46 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Dec 2024 21:48:24 +0000 (13:48 -0800)
commitefa95c32352b2ac7ff09d680144e22c0f25244cb
tree5234f2fc451b41df4367b495706d48cb97021763
parent29e03ec757292e55fa0f7efa051c84ddc4f3e668
rxrpc: Clean up Tx header flags generation handling

Clean up the generation of the header flags when building packet headers
for transmission:

 (1) Assemble the flags in a local variable rather than in the txb->flags.

 (2) Do the flags masking and JUMBO-PACKET setting in one bit of code for
     both the main header and the jumbo headers.

 (3) Generate the REQUEST-ACK flag afresh each time.  There's a possibility
     we might want to do jumbo retransmission packets in future.

 (4) Pass the local flags variable to the rxrpc_tx_data tracepoint rather
     than the combination of the txb flags and the wire header flags (the
     latter belong only to the first subpacket).

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-5-dhowells@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/trace/events/rxrpc.h
net/rxrpc/ar-internal.h
net/rxrpc/output.c
net/rxrpc/proc.c