Message ID | 20170725140248.D4532E0C82@smtp.ogc.us (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Tue, 2017-07-25 at 06:51 -0700, Steve Wise wrote: > Fixes: ee30f7d507c0 ("iw_cxgb4: Max fastreg depth depends on DSGL > support") > Signed-off-by: Steve Wise <swise@opengridcomputing.com> > Thanks, applied (sorry I missed it before, it should have been in my last pull request).
diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c index 5332f06..c2fba76 100644 --- a/drivers/infiniband/hw/cxgb4/mem.c +++ b/drivers/infiniband/hw/cxgb4/mem.c @@ -661,7 +661,7 @@ struct ib_mr *c4iw_alloc_mr(struct ib_pd *pd, rhp = php->rhp; if (mr_type != IB_MR_TYPE_MEM_REG || - max_num_sg > t4_max_fr_depth(&rhp->rdev.lldi.ulptx_memwrite_dsgl && + max_num_sg > t4_max_fr_depth(rhp->rdev.lldi.ulptx_memwrite_dsgl && use_dsgl)) return ERR_PTR(-EINVAL);
Fixes: ee30f7d507c0 ("iw_cxgb4: Max fastreg depth depends on DSGL support") Signed-off-by: Steve Wise <swise@opengridcomputing.com> --- drivers/infiniband/hw/cxgb4/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)