Skip to content

Commit

Permalink
app/testpmd: fix max queue number for Tx offloads
Browse files Browse the repository at this point in the history
[ upstream commit 0ca0c47 ]

When txq offload is configured, max rxq is used as the max queue. This
patch fixes it.

Fixes: 74453ac ("app/testpmd: fix queue offload configuration")

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
  • Loading branch information
Chengchang Tang authored and steevenlee committed Jun 8, 2021
1 parent eaee68d commit 6ca567c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/test-pmd/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -4564,7 +4564,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;
}
Expand Down

0 comments on commit 6ca567c

Please sign in to comment.