diff mbox series

[v2,1/2] net/hinic/base: remove the limitation for max queue num

Message ID 3cc7af99f75ecd714580835fb68c723cdb0696d3.1606199729.git.zhouguoyang@huawei.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers show
Series remove some limitations and operations | expand


Context Check Description
ci/checkpatch success coding style OK

Commit Message

Guoyang Zhou Nov. 24, 2020, 6:45 a.m. UTC
The maximum number of queues on the chip can be any value greater
than 0, it does not have to be the power of two, if it does not be
fixed, dpdk initialization may be failed with OVS mode firmware.

Fixes: 828d3e15a9dc ("net/hinic/base: support context and work queue")
Cc: stable@dpdk.org
Signed-off-by: Guoyang Zhou <zhouguoyang@huawei.com>
 drivers/net/hinic/base/hinic_pmd_nicio.c | 5 -----
 1 file changed, 5 deletions(-)
diff mbox series


diff --git a/drivers/net/hinic/base/hinic_pmd_nicio.c b/drivers/net/hinic/base/hinic_pmd_nicio.c
index 2736305..162308b 100644
--- a/drivers/net/hinic/base/hinic_pmd_nicio.c
+++ b/drivers/net/hinic/base/hinic_pmd_nicio.c
@@ -758,11 +758,6 @@  static int hinic_alloc_nicio(struct hinic_hwdev *hwdev)
 	int err;
 	max_qps = hinic_func_max_qnum(hwdev);
-	if ((max_qps & (max_qps - 1))) {
-		PMD_DRV_LOG(ERR, "Wrong number of max_qps: %d",
-			max_qps);
-		return -EINVAL;
-	}
 	nic_io->max_qps = max_qps;
 	nic_io->num_qps = max_qps;