svn commit: r358984 - stable/12/sys/dev/cxgbe/iw_cxgbe
Navdeep Parhar
np at FreeBSD.org
Sat Mar 14 02:15:22 UTC 2020
Author: np
Date: Sat Mar 14 02:15:21 2020
New Revision: 358984
URL: https://svnweb.freebsd.org/changeset/base/358984
Log:
MFC r358082:
cxgbe/iw_cxgbe: correctly enforce the max reg_mr depth.
Reported by: Andrew Zhu @ Netapp
Obtained from: Chelsio Communications
Sponsored by: Chelsio Communications
Modified:
stable/12/sys/dev/cxgbe/iw_cxgbe/mem.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/cxgbe/iw_cxgbe/mem.c
==============================================================================
--- stable/12/sys/dev/cxgbe/iw_cxgbe/mem.c Sat Mar 14 02:11:34 2020 (r358983)
+++ stable/12/sys/dev/cxgbe/iw_cxgbe/mem.c Sat Mar 14 02:15:21 2020 (r358984)
@@ -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;
More information about the svn-src-stable-12
mailing list