rxrpc: Switch to Congestion Avoidance mode at cwnd==ssthresh
authorDavid Howells <dhowells@redhat.com>
Fri, 30 Sep 2016 08:26:12 +0000 (09:26 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 30 Sep 2016 13:38:56 +0000 (14:38 +0100)
commit8782def204e57f6a507ff425e4944df4e010751a
treedbd79030746db67acb2754892e4a5130dc630702
parent265a44bbf23e4ed1c76409f07595ea88351ba4b3
rxrpc: Switch to Congestion Avoidance mode at cwnd==ssthresh

Switch to Congestion Avoidance mode at cwnd == ssthresh rather than relying
on cwnd getting incremented beyond ssthresh and the window size, the mode
being shifted and then cwnd being corrected.

We need to make sure we switch into CA mode so that we stop marking every
packet for ACK.

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