Skip to content

Commit

Permalink
net/txgbe: fix max number of queues for SR-IOV
Browse files Browse the repository at this point in the history
[ upstream commit 09b010d ]

Hardware restrictions require a maximum of 4 queues for every pool.

Fixes: a6712cd ("net/txgbe: add PF module init and uninit for SRIOV")

Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
  • Loading branch information
Jiawen Wu authored and kevintraynor committed Jun 8, 2022
1 parent 57e5b57 commit 22bac41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/txgbe/txgbe_pf.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 22bac41

Please sign in to comment.