cxgbe/iw_cxgbe: T6 has no limit on the amount of memory that can be

registered in one ib_reg_phys_mr.
This commit is contained in:
np 2017-03-28 23:39:11 +00:00
parent 4f63cbc234
commit 9423eb55d8

View File

@ -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)
{