From: Chengchang Tang Date: Thu, 22 Apr 2021 07:03:31 +0000 (+0800) Subject: app/testpmd: fix max queue number for Tx offloads X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0ca0c473977245f2eea57d60dbd0b575e41a8ceb;p=dpdk.git app/testpmd: fix max queue number for Tx offloads 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@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Min Hu (Connor) Acked-by: Xiaoyun Li --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 12efbc0cab..0ad27dff66 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; }