diff options
author | David Howells <dhowells@redhat.com> | 2017-06-14 19:56:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-14 22:42:45 +0300 |
commit | f7aec129a356ad049edddcb7e77b04a474fcf41f (patch) | |
tree | 103d3fb8a7c99b6c9ebaeaf20d2c891174d72f48 /net/rxrpc/ar-internal.h | |
parent | 0430a26054733de6e7884a4d2872613f9d8b9a66 (diff) | |
download | linux-f7aec129a356ad049edddcb7e77b04a474fcf41f.tar.xz |
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/ar-internal.h')
-rw-r--r-- | net/rxrpc/ar-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h index adbf37946450..69b97339ff9d 100644 --- a/net/rxrpc/ar-internal.h +++ b/net/rxrpc/ar-internal.h @@ -300,6 +300,8 @@ struct rxrpc_peer { u64 rtt_cache[RXRPC_RTT_CACHE_SIZE]; /* Determined RTT cache */ u8 rtt_cursor; /* next entry at which to insert */ u8 rtt_usage; /* amount of cache actually used */ + + u8 cong_cwnd; /* Congestion window size */ }; /* |