[dpdk-dev] [PATCH 2/2] app/testpmd: fix max queue number when configure Tx offloads
Li, Xiaoyun
xiaoyun.li at intel.com
Sun Apr 25 04:08:13 CEST 2021
> -----Original Message-----
> From: Min Hu (Connor) <humin29 at huawei.com>
> Sent: Thursday, April 22, 2021 15:04
> To: dev at dpdk.org
> Cc: Yigit, Ferruh <ferruh.yigit at intel.com>; Li, Xiaoyun <xiaoyun.li at intel.com>
> Subject: [PATCH 2/2] app/testpmd: fix max queue number when configure Tx
> offloads
>
> From: Chengchang Tang <tangchengchang at huawei.com>
>
> When txq offload is configured, max rxq is used as the max queue. This patch
> fixes it.
>
> Fixes: 74453ac9ef67 ("app/testpmd: fix queue offload configuration")
> Cc: stable at dpdk.org
>
> Signed-off-by: Chengchang Tang <tangchengchang at huawei.com>
> Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
> ---
> app/test-pmd/cmdline.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index
> f0fa6e8..1cb1027 100644
> --- a/app/test-pmd/cmdline.c
> +++ b/app/test-pmd/cmdline.c
> @@ -4666,7 +4666,7 @@ cmd_config_queue_tx_offloads(struct rte_port *port)
> int k;
>
> /* Apply queue tx offloads configuration */
> - for (k = 0; k < port->dev_info.max_rx_queues; k++)
> + for (k = 0; k < port->dev_info.max_tx_queues; k++)
> port->tx_conf[k].offloads =
> port->dev_conf.txmode.offloads;
> }
> --
> 2.7.4
Acked-by: Xiaoyun Li <xiaoyun.li at intel.com>
More information about the dev
mailing list