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.
Fixes: 511b7371d32b ("net/hinic: fix hugepage memory leaks") Cc: sta...@dpdk.org Signed-off-by: Guoyang Zhou <zhouguoy...@huawei.com> --- drivers/net/hinic/base/hinic_pmd_nicio.c | 5 ----- 1 file changed, 5 deletions(-) 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; -- 1.8.3.1