diff options
| author | Chuck Lever <[email protected]> | 2021-03-11 18:32:30 -0500 |
|---|---|---|
| committer | Chuck Lever <[email protected]> | 2021-03-22 13:22:13 -0400 |
| commit | c558d47596867ff1082fd7475b63670f63f7f5cf (patch) | |
| tree | 613ba5413d027719ef2e3dffba3c41dbe62755cb /include/linux/sunrpc | |
| parent | 7b748c30cc046056a24c459de415844a856ea54b (diff) | |
svcrdma: Maintain a Receive water mark
Post more Receives when the number of pending Receives drops below
a water mark. The batch mechanism is disabled if the underlying
device cannot support a reasonably-sized Receive Queue.
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/svc_rdma.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h index 1e76ed688044..722fc7c48725 100644 --- a/include/linux/sunrpc/svc_rdma.h +++ b/include/linux/sunrpc/svc_rdma.h @@ -94,6 +94,8 @@ struct svcxprt_rdma { spinlock_t sc_rw_ctxt_lock; struct list_head sc_rw_ctxts; + u32 sc_pending_recvs; + u32 sc_recv_batch; struct list_head sc_rq_dto_q; spinlock_t sc_rq_dto_lock; struct ib_qp *sc_qp; |
