Go to the documentation of this file.
40 #ifndef _LINUX_SUNRPC_XPRT_RDMA_H
41 #define _LINUX_SUNRPC_XPRT_RDMA_H
43 #include <linux/wait.h>
54 #define RDMA_RESOLVE_TIMEOUT (5000)
55 #define RDMA_CONNECT_RETRY_MAX (2)
91 #define INIT_CQCOUNT(ep) atomic_set(&(ep)->rep_cqcount, (ep)->rep_cqinit)
92 #define DECR_CQCOUNT(ep) atomic_sub_return(1, &(ep)->rep_cqcount)
112 #define RPCRDMA_MAX_DATA_SEGS (64)
113 #define RPCRDMA_MAX_SEGS (RPCRDMA_MAX_DATA_SEGS + 2)
114 #define MAX_RPCRDMAHDR (\
116 sizeof(struct rpcrdma_msg) + (2 * sizeof(u32)) + \
117 (sizeof(struct rpcrdma_read_chunk) * RPCRDMA_MAX_SEGS) + sizeof(u32))
198 #define rpcr_to_rdmar(r) \
199 container_of((r)->rq_buffer, struct rpcrdma_req, rl_xdr_buf[0])
219 #define rdmab_to_ia(b) (&container_of((b), struct rpcrdma_xprt, rx_buf)->rx_ia)
237 #define RPCRDMA_INLINE_READ_THRESHOLD(rq) \
238 (rpcx_to_rdmad(rq->rq_task->tk_xprt).inline_rsize)
240 #define RPCRDMA_INLINE_WRITE_THRESHOLD(rq)\
241 (rpcx_to_rdmad(rq->rq_task->tk_xprt).inline_wsize)
243 #define RPCRDMA_INLINE_PAD_VALUE(rq)\
244 rpcx_to_rdmad(rq->rq_task->tk_xprt).padding
284 #define rpcx_to_rdmax(x) container_of(x, struct rpcrdma_xprt, xprt)
285 #define rpcx_to_rdmad(x) (rpcx_to_rdmax(x)->rx_data)