浏览代码

IB/hfi1: Remove invalid QOS check

Remove an invalid compare of the number of QOS RSM map table entries
against the number of physical receive contexts.  The RSM map table
has its own size and has no relation to the number of physical receive
contexts.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Dean Luick 9 年之前
父节点
当前提交
35969d9b94
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/staging/rdma/hfi1/chip.c

+ 0 - 2
drivers/staging/rdma/hfi1/chip.c

@@ -13513,8 +13513,6 @@ static void init_qos(struct hfi1_devdata *dd, u32 first_ctxt)
 	m = ilog2(qpns_per_vl);
 	m = ilog2(qpns_per_vl);
 	if ((m + n) > 7)
 	if ((m + n) > 7)
 		goto bail;
 		goto bail;
-	if (num_vls * qpns_per_vl > dd->chip_rcv_contexts)
-		goto bail;
 	rsmmap = kmalloc_array(NUM_MAP_REGS, sizeof(u64), GFP_KERNEL);
 	rsmmap = kmalloc_array(NUM_MAP_REGS, sizeof(u64), GFP_KERNEL);
 	if (!rsmmap)
 	if (!rsmmap)
 		goto bail;
 		goto bail;