• David Howells's avatar
    rxrpc: Simplify skbuff accounting in receive path · 2d1faf7a
    David Howells authored
    A received skbuff needs a ref when it gets put on a call data queue or conn
    packet queue, and rxrpc_input_packet() and co. jump through a lot of hoops
    to avoid double-dropping the skbuff ref so that we can avoid getting a ref
    when we queue the packet.
    
    Change this so that the skbuff ref is unconditionally dropped by the caller
    of rxrpc_input_packet().  An additional ref is then taken on the packet if
    it is pushed onto a queue.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    cc: Marc Dionne <marc.dionne@auristor.com>
    cc: linux-afs@lists.infradead.org
    2d1faf7a
rxrpc.h 53.7 KB