From: David Howells Date: Fri, 30 Sep 2016 08:33:27 +0000 (+0100) Subject: rxrpc: Reduce ssthresh to peer's receive window X-Git-Tag: v4.9.8~1241^2~15^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0851115090a3eb9585d6a804a61e47f3d89ac2a8;p=platform%2Fkernel%2Flinux-rpi3.git rxrpc: Reduce ssthresh to peer's receive window When we receive an ACK from the peer that tells us what the peer's receive window (rwind) is, we should reduce ssthresh to rwind if rwind is smaller than ssthresh. Signed-off-by: David Howells --- diff --git a/net/rxrpc/input.c b/net/rxrpc/input.c index 21746f0..7993473 100644 --- a/net/rxrpc/input.c +++ b/net/rxrpc/input.c @@ -658,6 +658,8 @@ static void rxrpc_input_ackinfo(struct rxrpc_call *call, struct sk_buff *skb, if (rwind > RXRPC_RXTX_BUFF_SIZE - 1) rwind = RXRPC_RXTX_BUFF_SIZE - 1; call->tx_winsize = rwind; + if (call->cong_ssthresh > rwind) + call->cong_ssthresh = rwind; mtu = min(ntohl(ackinfo->rxMTU), ntohl(ackinfo->maxMTU));