The ethdev layer already validates that the number of requested queues is less than the reported max queues.
Signed-off-by: Stephen Hemminger <step...@networkplumber.org> --- drivers/net/tap/rte_eth_tap.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index c486c6f073..46afc9e2cb 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -948,22 +948,6 @@ tap_dev_configure(struct rte_eth_dev *dev) { struct pmd_internals *pmd = dev->data->dev_private; - if (dev->data->nb_rx_queues > RTE_PMD_TAP_MAX_QUEUES) { - TAP_LOG(ERR, - "%s: number of rx queues %d exceeds max num of queues %d", - dev->device->name, - dev->data->nb_rx_queues, - RTE_PMD_TAP_MAX_QUEUES); - return -1; - } - if (dev->data->nb_tx_queues > RTE_PMD_TAP_MAX_QUEUES) { - TAP_LOG(ERR, - "%s: number of tx queues %d exceeds max num of queues %d", - dev->device->name, - dev->data->nb_tx_queues, - RTE_PMD_TAP_MAX_QUEUES); - return -1; - } if (dev->data->nb_rx_queues != dev->data->nb_tx_queues) { TAP_LOG(ERR, "%s: number of rx queues %d must be equal to number of tx queues %d", -- 2.45.2