Date: Tue, 18 Feb 2020 20:43:10 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r358082 - head/sys/dev/cxgbe/iw_cxgbe Message-ID: <202002182043.01IKhArP050006@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Tue Feb 18 20:43:10 2020 New Revision: 358082 URL: https://svnweb.freebsd.org/changeset/base/358082 Log: cxgbe/iw_cxgbe: correctly enforce the max reg_mr depth. Reported by: Andrew Zhu @ Netapp Obtained from: Chelsio Communications MFC after: 1 week Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/iw_cxgbe/mem.c Modified: head/sys/dev/cxgbe/iw_cxgbe/mem.c ============================================================================== --- head/sys/dev/cxgbe/iw_cxgbe/mem.c Tue Feb 18 19:53:36 2020 (r358081) +++ head/sys/dev/cxgbe/iw_cxgbe/mem.c Tue Feb 18 20:43:10 2020 (r358082) @@ -682,7 +682,7 @@ static int c4iw_set_page(struct ib_mr *ibmr, u64 addr) { struct c4iw_mr *mhp = to_c4iw_mr(ibmr); - if (unlikely(mhp->mpl_len == mhp->max_mpl_len)) + if (unlikely(mhp->mpl_len == mhp->attr.pbl_size)) return -ENOMEM; mhp->mpl[mhp->mpl_len++] = addr;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002182043.01IKhArP050006>