rxrpc: Only take the rwind and mtu values from latest ACK
authorDavid Howells <dhowells@redhat.com>
Mon, 8 Oct 2018 14:46:11 +0000 (15:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Nov 2018 15:42:56 +0000 (07:42 -0800)
commit2daa0b5ec29630377c6d14b3d943e1c5c2a65577
tree261ad63f22dc3e9fc7cea2c8437eb7045b9e4d09
parentd9ec661f2dc887eb13a81a1d61538c5d3ed27a66
rxrpc: Only take the rwind and mtu values from latest ACK

[ Upstream commit 298bc15b2079c324e82d0a6fda39c3d762af7282 ]

Move the out-of-order and duplicate ACK packet check to before the call to
rxrpc_input_ackinfo() so that the receive window size and MTU size are only
checked in the latest ACK packet and don't regress.

Fixes: 248f219cb8bc ("rxrpc: Rewrite the data and ack handling code")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/rxrpc/input.c