diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2014-05-28 10:34:49 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2014-06-04 08:56:51 -0400 |
commit | 4f4cf5ad6fc1b16dc8dc9d750bb80b35eba5e98d (patch) | |
tree | 752787b1b79b4d7c076883434bcc5650e168d1cb /include/linux/sunrpc | |
parent | 18906972aa1103c07869c9b43860a52e0e27e8e5 (diff) |
SUNRPC: Move congestion window constants to header file
I would like to use one of the RPC client's congestion algorithm
constants in transport-specific code.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 3e5efb2b236e..5903d2c0ab4d 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -24,6 +24,12 @@ | |||
24 | #define RPC_MAX_SLOT_TABLE_LIMIT (65536U) | 24 | #define RPC_MAX_SLOT_TABLE_LIMIT (65536U) |
25 | #define RPC_MAX_SLOT_TABLE RPC_MAX_SLOT_TABLE_LIMIT | 25 | #define RPC_MAX_SLOT_TABLE RPC_MAX_SLOT_TABLE_LIMIT |
26 | 26 | ||
27 | #define RPC_CWNDSHIFT (8U) | ||
28 | #define RPC_CWNDSCALE (1U << RPC_CWNDSHIFT) | ||
29 | #define RPC_INITCWND RPC_CWNDSCALE | ||
30 | #define RPC_MAXCWND(xprt) ((xprt)->max_reqs << RPC_CWNDSHIFT) | ||
31 | #define RPCXPRT_CONGESTED(xprt) ((xprt)->cong >= (xprt)->cwnd) | ||
32 | |||
27 | /* | 33 | /* |
28 | * This describes a timeout strategy | 34 | * This describes a timeout strategy |
29 | */ | 35 | */ |