[dpdk-stable] [PATCH] examples/l3fwd: fix max Tx queue count

Harman Kalra hkalra at marvell.com
Mon Jan 11 18:18:07 CET 2021


Ping...

On Tue, Dec 15, 2020 at 12:32:55AM +0530, Harman Kalra wrote:
> 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: 268888b5b020 ("examples/l3fwd: modularize")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Harman Kalra <hkalra at marvell.com>
> ---
>  examples/l3fwd/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c
> index d62dec434..bb49e5faf 100644
> --- a/examples/l3fwd/main.c
> +++ b/examples/l3fwd/main.c
> @@ -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
> -- 
> 2.18.0
> 


More information about the stable mailing list