]> git.droids-corp.org - dpdk.git/commitdiff
net/hinic/base: remove queue number limitation
authorGuoyang Zhou <zhouguoyang@huawei.com>
Tue, 24 Nov 2020 06:45:33 +0000 (14:45 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 Nov 2020 22:54:09 +0000 (23:54 +0100)
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

index 27363051569414c306a45043db85b60764e1fc46..162308b02feeb1bc16fb9324c0f146e415d061cf 100644 (file)
@@ -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;