rxrpc: Add a kvec[] to the rxrpc_txbuf struct
authorDavid Howells <dhowells@redhat.com>
Mon, 29 Jan 2024 23:07:43 +0000 (23:07 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 29 Feb 2024 15:49:59 +0000 (15:49 +0000)
commitff342bdc59f4a7431d0b58ce8bc2ef7d44cff15f
tree6a8cf91c433dccd6e5a879aec6195cc715a0de47
parent1ac6a8536c2cbb12b593f0f4ffd7816b15a484fa
rxrpc: Add a kvec[] to the rxrpc_txbuf struct

Add a kvec[] to the rxrpc_txbuf struct to point to the contributory buffers
for a packet.  Start with just a single element for now, but this will be
expanded later.

Make the ACK sending function use it, which means that rxrpc_fill_out_ack()
doesn't need to return the size of the sack table, padding and trailer.

Make the data sending code use it, both in where sendmsg() packages code up
into txbufs and where those txbufs are transmitted.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: "David S. Miller" <davem@davemloft.net>
cc: Eric Dumazet <edumazet@google.com>
cc: Jakub Kicinski <kuba@kernel.org>
cc: Paolo Abeni <pabeni@redhat.com>
cc: linux-afs@lists.infradead.org
cc: netdev@vger.kernel.org
net/rxrpc/ar-internal.h
net/rxrpc/output.c
net/rxrpc/sendmsg.c
net/rxrpc/txbuf.c