diff options
author | Parav Pandit <pandit.parav@gmail.com> | 2016-09-28 23:26:44 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-10-06 20:50:04 +0300 |
commit | b6bbee0d2438a2c9c7525f5bd7047a8b2ce4f38f (patch) | |
tree | 9d6915ef13eb5ed496e944e8da51498be7281dfc /drivers/infiniband/sw/rxe/rxe_resp.c | |
parent | d9703650f4aba7555fde92636d8d9a689029e8f8 (diff) | |
download | linux-b6bbee0d2438a2c9c7525f5bd7047a8b2ce4f38f.tar.xz |
IB/rxe: Properly honor max IRD value for rd/atomic.
This patch honoris the max incoming read request count instead of
outgoing read req count
(a) during modify qp by allocating response queue metadata
(b) during incoming read request processing
Signed-off-by: Parav Pandit <pandit.parav@gmail.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_resp.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_resp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c index 3e0f0f2baace..d544b5e84797 100644 --- a/drivers/infiniband/sw/rxe/rxe_resp.c +++ b/drivers/infiniband/sw/rxe/rxe_resp.c @@ -383,7 +383,7 @@ static enum resp_states check_resource(struct rxe_qp *qp, * too many read/atomic ops, we just * recycle the responder resource queue */ - if (likely(qp->attr.max_rd_atomic > 0)) + if (likely(qp->attr.max_dest_rd_atomic > 0)) return RESPST_CHK_LENGTH; else return RESPST_ERR_TOO_MANY_RDMA_ATM_REQ; |