]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Don't let ack.previousPacket regress
authorDavid Howells <dhowells@redhat.com>
Sat, 21 May 2022 08:03:24 +0000 (09:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 20:30:53 +0000 (21:30 +0100)
commita9a29023d7f50ee5ab0b82679b877e6a595b193d
treefcd07bf0d8f48e2e0df44cf25b5ee0368a73ef31
parent73740346b89cff0ebf7a5db76b24400e5a5770bc
rxrpc: Don't let ack.previousPacket regress

The previousPacket field in the rx ACK packet should never go backwards -
it's now the highest DATA sequence number received, not the last on
received (it used to be used for out of sequence detection).

Fixes: a42fc64729e7 ("rxrpc: Rewrite the data and ack handling code")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/ar-internal.h
net/rxrpc/input.c
net/rxrpc/output.c