aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw/rxe/rxe_loc.h
diff options
context:
space:
mode:
authorParav Pandit <pandit.parav@gmail.com>2016-09-28 20:26:44 +0000
committerDoug Ledford <dledford@redhat.com>2016-10-06 13:50:04 -0400
commitb6bbee0d2438a2c9c7525f5bd7047a8b2ce4f38f (patch)
tree9d6915ef13eb5ed496e944e8da51498be7281dfc /drivers/infiniband/sw/rxe/rxe_loc.h
parentIB/{rxe,core,rdmavt}: Fix kernel crash for reg MR (diff)
downloadlinux-dev-b6bbee0d2438a2c9c7525f5bd7047a8b2ce4f38f.tar.xz
linux-dev-b6bbee0d2438a2c9c7525f5bd7047a8b2ce4f38f.zip
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_loc.h')
-rw-r--r--drivers/infiniband/sw/rxe/rxe_loc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_loc.h b/drivers/infiniband/sw/rxe/rxe_loc.h
index 4a5484ef604f..73849a5a91b3 100644
--- a/drivers/infiniband/sw/rxe/rxe_loc.h
+++ b/drivers/infiniband/sw/rxe/rxe_loc.h
@@ -198,7 +198,7 @@ void free_rd_atomic_resource(struct rxe_qp *qp, struct resp_res *res);
static inline void rxe_advance_resp_resource(struct rxe_qp *qp)
{
qp->resp.res_head++;
- if (unlikely(qp->resp.res_head == qp->attr.max_rd_atomic))
+ if (unlikely(qp->resp.res_head == qp->attr.max_dest_rd_atomic))
qp->resp.res_head = 0;
}