From f52a45c98ede3731997393ce92ac9251f9538589 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Wed, 1 Mar 2017 20:23:21 +0000 Subject: [PATCH] cxgbe/iw_cxgbe: Do not check the size of the memory region being registered. T4/5/6 have no internal limit on this size. This is probably a copy paste from the T3 iw_cxgb driver. MFC after: 3 days Sponsored by: Chelsio Communications --- sys/dev/cxgbe/iw_cxgbe/mem.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/cxgbe/iw_cxgbe/mem.c b/sys/dev/cxgbe/iw_cxgbe/mem.c index d6f1d812d83f..2b6c8e6017dc 100644 --- a/sys/dev/cxgbe/iw_cxgbe/mem.c +++ b/sys/dev/cxgbe/iw_cxgbe/mem.c @@ -341,9 +341,6 @@ static int build_phys_page_list(struct ib_phys_buf *buffer_list, PAGE_SIZE - 1) & PAGE_MASK; } - if (*total_size > 0xFFFFFFFFULL) - return -ENOMEM; - /* Find largest page shift we can use to cover buffers */ for (*shift = PAGE_SHIFT; *shift < 27; ++(*shift)) if ((1ULL << *shift) & mask)