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

Navdeep Parhar np at FreeBSD.org
Tue Mar 28 23:39:12 UTC 2017


Author: np
Date: Tue Mar 28 23:39:11 2017
New Revision: 316118
URL: https://svnweb.freebsd.org/changeset/base/316118

Log:
  cxgbe/iw_cxgbe: T6 has no limit on the amount of memory that can be
  registered in one ib_reg_phys_mr.

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 Mar 28 23:02:41 2017	(r316117)
+++ head/sys/dev/cxgbe/iw_cxgbe/mem.c	Tue Mar 28 23:39:11 2017	(r316118)
@@ -47,11 +47,14 @@ __FBSDID("$FreeBSD$");
 #define C4IW_MAX_INLINE_SIZE 96
 
 static int
-mr_exceeds_hw_limits(struct c4iw_dev *dev __unused, u64 length)
+mr_exceeds_hw_limits(struct c4iw_dev *dev, u64 length)
 {
 
-	return (length >= 8*1024*1024*1024ULL);
+	return ((is_t4(dev->rdev.adap) ||
+		is_t5(dev->rdev.adap)) &&
+		length >= 8*1024*1024*1024ULL);
 }
+
 static int
 write_adapter_mem(struct c4iw_rdev *rdev, u32 addr, u32 len, void *data)
 {


More information about the svn-src-head mailing list