• David Howells's avatar
    rxrpc: Get rid of the Rx ring · 5d7edbc9
    David Howells authored
    Get rid of the Rx ring and replace it with a pair of queues instead.  One
    queue gets the packets that are in-sequence and are ready for processing by
    recvmsg(); the other queue gets the out-of-sequence packets for addition to
    the first queue as the holes get filled.
    
    The annotation ring is removed and replaced with a SACK table.  The SACK
    table has the bits set that correspond exactly to the sequence number of
    the packet being acked.  The SACK ring is copied when an ACK packet is
    being assembled and rotated so that the first ACK is in byte 0.
    
    Flow control handling is altered so that packets that are moved to the
    in-sequence queue are hard-ACK'd even before they're consumed - and then
    the Rx window size in the ACK packet (rsize) is shrunk down to compensate
    (even going to 0 if the window is full).
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    cc: Marc Dionne <marc.dionne@auristor.com>
    cc: linux-afs@lists.infradead.org
    5d7edbc9
rxrpc.h 45.3 KB