From: Steve Wise Date: Tue, 14 Jun 2011 20:59:21 +0000 (+0000) Subject: RDMA/cxgb4: Don't truncate MR lengths X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=301c2c3f039a1f9478f6cbef60f2ccd4da9bd4a1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git RDMA/cxgb4: Don't truncate MR lengths Remove left-over code from T3 that limited MR sizes to 32b. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c index 273ffe49525a..0347eed4a167 100644 --- a/drivers/infiniband/hw/cxgb4/mem.c +++ b/drivers/infiniband/hw/cxgb4/mem.c @@ -625,7 +625,7 @@ pbl_done: mhp->attr.perms = c4iw_ib_to_tpt_access(acc); mhp->attr.va_fbo = virt; mhp->attr.page_size = shift - 12; - mhp->attr.len = (u32) length; + mhp->attr.len = length; err = register_mem(rhp, php, mhp, shift); if (err)