diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2016-05-02 14:40:40 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2016-05-17 15:47:57 -0400 |
commit | 6b26cc8c8ead3636a18bfd9489984983f4ddd6f4 (patch) | |
tree | a568d97b3fea0065f56122b1652ecc7748fa1da5 /include/linux/sunrpc | |
parent | 4b9c7f9db9a003f5c342184dc4401c1b7f2efb39 (diff) |
sunrpc: Advertise maximum backchannel payload size
RPC-over-RDMA transports have a limit on how large a backward
direction (backchannel) RPC message can be. Ensure that the NFSv4.x
CREATE_SESSION operation advertises this limit to servers.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/clnt.h | 1 | ||||
-rw-r--r-- | include/linux/sunrpc/xprt.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 9a7ddbaf116e..19c659d1c0f8 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
@@ -176,6 +176,7 @@ void rpc_setbufsize(struct rpc_clnt *, unsigned int, unsigned int); | |||
176 | int rpc_protocol(struct rpc_clnt *); | 176 | int rpc_protocol(struct rpc_clnt *); |
177 | struct net * rpc_net_ns(struct rpc_clnt *); | 177 | struct net * rpc_net_ns(struct rpc_clnt *); |
178 | size_t rpc_max_payload(struct rpc_clnt *); | 178 | size_t rpc_max_payload(struct rpc_clnt *); |
179 | size_t rpc_max_bc_payload(struct rpc_clnt *); | ||
179 | unsigned long rpc_get_timeout(struct rpc_clnt *clnt); | 180 | unsigned long rpc_get_timeout(struct rpc_clnt *clnt); |
180 | void rpc_force_rebind(struct rpc_clnt *); | 181 | void rpc_force_rebind(struct rpc_clnt *); |
181 | size_t rpc_peeraddr(struct rpc_clnt *, struct sockaddr *, size_t); | 182 | size_t rpc_peeraddr(struct rpc_clnt *, struct sockaddr *, size_t); |
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index fb0d212e0d3a..5aa3834619a8 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -142,6 +142,7 @@ struct rpc_xprt_ops { | |||
142 | int (*bc_setup)(struct rpc_xprt *xprt, | 142 | int (*bc_setup)(struct rpc_xprt *xprt, |
143 | unsigned int min_reqs); | 143 | unsigned int min_reqs); |
144 | int (*bc_up)(struct svc_serv *serv, struct net *net); | 144 | int (*bc_up)(struct svc_serv *serv, struct net *net); |
145 | size_t (*bc_maxpayload)(struct rpc_xprt *xprt); | ||
145 | void (*bc_free_rqst)(struct rpc_rqst *rqst); | 146 | void (*bc_free_rqst)(struct rpc_rqst *rqst); |
146 | void (*bc_destroy)(struct rpc_xprt *xprt, | 147 | void (*bc_destroy)(struct rpc_xprt *xprt, |
147 | unsigned int max_reqs); | 148 | unsigned int max_reqs); |