examples/l3fwd: remove limitation on Tx queue count
authorHarman Kalra <hkalra@marvell.com>
Tue, 12 Jan 2021 18:24:46 +0000 (23:54 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 19 Jan 2021 12:12:59 +0000 (13:12 +0100)
In l3fwd no of transmit queues is calculated based on no of
lcores with which it is launched. Hence maximum no of tx
queues possible per port should depend on RTE_MAX_LCORE value.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
examples/l3fwd/main.c

index d62dec4..bb49e5f 100644 (file)
@@ -48,7 +48,7 @@
 #include "l3fwd.h"
 #include "l3fwd_event.h"
 
-#define MAX_TX_QUEUE_PER_PORT RTE_MAX_ETHPORTS
+#define MAX_TX_QUEUE_PER_PORT RTE_MAX_LCORE
 #define MAX_RX_QUEUE_PER_PORT 128
 
 #define MAX_LCORE_PARAMS 1024