]> git.ipfire.org Git - thirdparty/linux.git/commit
rxrpc: Don't allocate a txbuf for an ACK transmission
authorDavid Howells <dhowells@redhat.com>
Wed, 4 Dec 2024 07:47:00 +0000 (07:47 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 9 Dec 2024 21:48:31 +0000 (13:48 -0800)
commit08d55d7cf3f33c730ce2694393efe16b7983a9c8
tree9ec27d427a85ed26aa93118c12a752ac96c63de2
parentfe24a5494390d22ff645fd201d2bf1669fa3aab1
rxrpc: Don't allocate a txbuf for an ACK transmission

Don't allocate an rxrpc_txbuf struct for an ACK transmission.  There's now
no need as the memory to hold the ACK content is allocated with a page frag
allocator.  The allocation and freeing of a txbuf is just unnecessary
overhead.

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