|
@@ -51,6 +51,7 @@
|
|
#include <linux/sunrpc/clnt.h> /* rpc_xprt */
|
|
#include <linux/sunrpc/clnt.h> /* rpc_xprt */
|
|
#include <linux/sunrpc/rpc_rdma.h> /* RPC/RDMA protocol */
|
|
#include <linux/sunrpc/rpc_rdma.h> /* RPC/RDMA protocol */
|
|
#include <linux/sunrpc/xprtrdma.h> /* xprt parameters */
|
|
#include <linux/sunrpc/xprtrdma.h> /* xprt parameters */
|
|
|
|
+#include <linux/sunrpc/svc.h> /* RPCSVC_MAXPAYLOAD */
|
|
|
|
|
|
#define RDMA_RESOLVE_TIMEOUT (5000) /* 5 seconds */
|
|
#define RDMA_RESOLVE_TIMEOUT (5000) /* 5 seconds */
|
|
#define RDMA_CONNECT_RETRY_MAX (2) /* retries if no listener backlog */
|
|
#define RDMA_CONNECT_RETRY_MAX (2) /* retries if no listener backlog */
|
|
@@ -392,4 +393,10 @@ extern struct kmem_cache *svc_rdma_ctxt_cachep;
|
|
/* Workqueue created in svc_rdma.c */
|
|
/* Workqueue created in svc_rdma.c */
|
|
extern struct workqueue_struct *svc_rdma_wq;
|
|
extern struct workqueue_struct *svc_rdma_wq;
|
|
|
|
|
|
|
|
+#if RPCSVC_MAXPAYLOAD < (RPCRDMA_MAX_DATA_SEGS << PAGE_SHIFT)
|
|
|
|
+#define RPCSVC_MAXPAYLOAD_RDMA RPCSVC_MAXPAYLOAD
|
|
|
|
+#else
|
|
|
|
+#define RPCSVC_MAXPAYLOAD_RDMA (RPCRDMA_MAX_DATA_SEGS << PAGE_SHIFT)
|
|
|
|
+#endif
|
|
|
|
+
|
|
#endif /* _LINUX_SUNRPC_XPRT_RDMA_H */
|
|
#endif /* _LINUX_SUNRPC_XPRT_RDMA_H */
|