net/txgbe: fix max number of queues for SR-IOV
authorJiawen Wu <jiawenwu@trustnetic.com>
Mon, 30 May 2022 09:30:16 +0000 (17:30 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Tue, 31 May 2022 07:42:16 +0000 (09:42 +0200)
Hardware restrictions require a maximum of 4 queues for every pool.

Fixes: a6712cd029a4 ("net/txgbe: add PF module init and uninit for SRIOV")
Cc: stable@dpdk.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
drivers/net/txgbe/txgbe_pf.c

index 67d92bf..0b82fb1 100644 (file)
@@ -108,7 +108,7 @@ int txgbe_pf_host_init(struct rte_eth_dev *eth_dev)
                nb_queue = 4;
                RTE_ETH_DEV_SRIOV(eth_dev).active = RTE_ETH_32_POOLS;
        } else {
-               nb_queue = 8;
+               nb_queue = 4;
                RTE_ETH_DEV_SRIOV(eth_dev).active = RTE_ETH_16_POOLS;
        }