examples/l3fwd-power: support multiqueue ethdev power management
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 9 Jul 2021 16:08:17 +0000 (16:08 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 9 Jul 2021 19:13:13 +0000 (21:13 +0200)
Currently, l3fwd-power enforces the limitation of having one queue per
lcore. This is no longer necessary, so remove the limitation.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: David Hunt <david.hunt@intel.com>
examples/l3fwd-power/main.c

index f8dfed1..52f56dc 100644 (file)
@@ -2723,12 +2723,6 @@ main(int argc, char **argv)
                printf("\nInitializing rx queues on lcore %u ... ", lcore_id );
                fflush(stdout);
 
-               /* PMD power management mode can only do 1 queue per core */
-               if (app_mode == APP_MODE_PMD_MGMT && qconf->n_rx_queue > 1) {
-                       rte_exit(EXIT_FAILURE,
-                               "In PMD power management mode, only one queue per lcore is allowed\n");
-               }
-
                /* init RX queues */
                for(queue = 0; queue < qconf->n_rx_queue; ++queue) {
                        struct rte_eth_rxconf rxq_conf;