svn commit: r358082 - head/sys/dev/cxgbe/iw_cxgbe

Navdeep Parhar np at FreeBSD.org
Tue Feb 18 20:43:12 UTC 2020


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;


More information about the svn-src-all mailing list