diff options
author | David Howells <dhowells@redhat.com> | 2016-09-29 17:37:16 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-09-29 17:57:47 -0400 |
commit | b112a67081e4b06652ecde588bf1d5778fe43d75 (patch) | |
tree | 0b749c3709215d445cdffc7fd2cfd3743a204888 | |
parent | 1e9e5c9521d3667664a6e3c97075f71afec23720 (diff) |
rxrpc: Request more ACKs in slow-start mode
Set the request-ACK on more DATA packets whilst we're in slow start mode so
that we get sufficient ACKs back to supply information to configure the
window.
Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r-- | net/rxrpc/output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rxrpc/output.c b/net/rxrpc/output.c index ac9a58b619a6..0d47db886f6e 100644 --- a/net/rxrpc/output.c +++ b/net/rxrpc/output.c | |||
@@ -284,6 +284,7 @@ int rxrpc_send_data_packet(struct rxrpc_call *call, struct sk_buff *skb, | |||
284 | * ACKs if a DATA packet appears to have been lost. | 284 | * ACKs if a DATA packet appears to have been lost. |
285 | */ | 285 | */ |
286 | if (retrans || | 286 | if (retrans || |
287 | call->cong_mode == RXRPC_CALL_SLOW_START || | ||
287 | (call->peer->rtt_usage < 3 && sp->hdr.seq & 1) || | 288 | (call->peer->rtt_usage < 3 && sp->hdr.seq & 1) || |
288 | ktime_before(ktime_add_ms(call->peer->rtt_last_req, 1000), | 289 | ktime_before(ktime_add_ms(call->peer->rtt_last_req, 1000), |
289 | ktime_get_real())) | 290 | ktime_get_real())) |