rxrpc: Fix the parsing of soft-ACKs
authorDavid Howells <dhowells@redhat.com>
Sat, 17 Sep 2016 09:49:12 +0000 (10:49 +0100)
committerDavid Howells <dhowells@redhat.com>
Sat, 17 Sep 2016 09:53:21 +0000 (10:53 +0100)
The soft-ACK parser doesn't increment the pointer into the soft-ACK list,
resulting in the first ACK/NACK value being applied to all the relevant
packets in the Tx queue.  This has the potential to miss retransmissions
and cause excessive retransmissions.

Fix this by incrementing the pointer.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/input.c

index f0d9115..c1f83d2 100644 (file)
@@ -384,7 +384,7 @@ static void rxrpc_input_soft_acks(struct rxrpc_call *call, u8 *acks,
 
        for (; nr_acks > 0; nr_acks--, seq++) {
                ix = seq & RXRPC_RXTX_BUFF_MASK;
-               switch (*acks) {
+               switch (*acks++) {
                case RXRPC_ACK_TYPE_ACK:
                        call->rxtx_annotations[ix] = RXRPC_TX_ANNO_ACK;
                        break;