diff options
author | David Howells <dhowells@redhat.com> | 2017-06-14 18:56:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-14 21:42:45 +0200 |
commit | f7aec129a356ad049edddcb7e77b04a474fcf41f (patch) | |
tree | 103d3fb8a7c99b6c9ebaeaf20d2c891174d72f48 /net/rxrpc/call_accept.c | |
parent | liquidio: fix VF driver off-by-one bug when setting ethtool -C ethX rx-frames (diff) | |
download | linux-f7aec129a356ad049edddcb7e77b04a474fcf41f.tar.xz linux-f7aec129a356ad049edddcb7e77b04a474fcf41f.zip |
rxrpc: Cache the congestion window setting
Cache the congestion window setting that was determined during a call's
transmission phase when it finishes so that it can be used by the next call
to the same peer, thereby shortcutting the slow-start algorithm.
The value is stored in the rxrpc_peer struct and is accessed without
locking. Each call takes the value that happens to be there when it starts
and just overwrites the value when it finishes.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/call_accept.c')
-rw-r--r-- | net/rxrpc/call_accept.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rxrpc/call_accept.c b/net/rxrpc/call_accept.c index 0d4d84e8c074..dd30d74824b0 100644 --- a/net/rxrpc/call_accept.c +++ b/net/rxrpc/call_accept.c @@ -310,6 +310,7 @@ static struct rxrpc_call *rxrpc_alloc_incoming_call(struct rxrpc_sock *rx, rxrpc_see_call(call); call->conn = conn; call->peer = rxrpc_get_peer(conn->params.peer); + call->cong_cwnd = call->peer->cong_cwnd; return call; } |