|
@@ -48,6 +48,12 @@
|
|
|
#include <rdma/rdma_cm.h>
|
|
|
#define SVCRDMA_DEBUG
|
|
|
|
|
|
+/* Default and maximum inline threshold sizes */
|
|
|
+enum {
|
|
|
+ RPCRDMA_DEF_INLINE_THRESH = 4096,
|
|
|
+ RPCRDMA_MAX_INLINE_THRESH = 65536
|
|
|
+};
|
|
|
+
|
|
|
/* RPC/RDMA parameters and stats */
|
|
|
extern unsigned int svcrdma_ord;
|
|
|
extern unsigned int svcrdma_max_requests;
|
|
@@ -86,7 +92,7 @@ struct svc_rdma_op_ctxt {
|
|
|
int count;
|
|
|
unsigned int mapped_sges;
|
|
|
struct ib_send_wr send_wr;
|
|
|
- struct ib_sge sge[RPCSVC_MAXPAGES];
|
|
|
+ struct ib_sge sge[1 + RPCRDMA_MAX_INLINE_THRESH / PAGE_SIZE];
|
|
|
struct page *pages[RPCSVC_MAXPAGES];
|
|
|
};
|
|
|
|
|
@@ -186,7 +192,6 @@ struct svcxprt_rdma {
|
|
|
* page size of 4k, or 32k * 2 ops / 4k = 16 outstanding RDMA_READ. */
|
|
|
#define RPCRDMA_ORD (64/4)
|
|
|
#define RPCRDMA_MAX_REQUESTS 32
|
|
|
-#define RPCRDMA_MAX_REQ_SIZE 4096
|
|
|
|
|
|
/* Typical ULP usage of BC requests is NFSv4.1 backchannel. Our
|
|
|
* current NFSv4.1 implementation supports one backchannel slot.
|