• David Howells's avatar
    rxrpc: Add a kvec[] to the rxrpc_txbuf struct · ff342bdc
    David Howells authored
    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: default avatarDavid 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
    ff342bdc
txbuf.c 3.66 KB