rxrpc: Use rxrpc_txbuf::kvec[0] instead of rxrpc_txbuf::wire
authorDavid Howells <dhowells@redhat.com>
Tue, 30 Jan 2024 08:44:40 +0000 (08:44 +0000)
committerDavid Howells <dhowells@redhat.com>
Sun, 3 Mar 2024 23:41:54 +0000 (23:41 +0000)
commit8985f2b09b3303b935b9ab4814d801251f0c7c22
tree510463c5c3bfca396b904307b59e4c3ab328ad04
parent99afb28c676cc36747cdb18ffaa6692a60888853
rxrpc: Use rxrpc_txbuf::kvec[0] instead of rxrpc_txbuf::wire

Use rxrpc_txbuf::kvec[0] instead of rxrpc_txbuf::wire to gain access to the
Rx protocol header.  In future, the wire header will be stored in a page
frag, not in the rxrpc_txbuf struct making it possible to use
MSG_SPLICE_PAGES when sending it.

Similarly, access the ack header as being immediately after the wire header
when filling out an ACK packet.

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/txbuf.c