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: 74453ac9ef
("app/testpmd: fix queue offload configuration")
Cc: stable@dpdk.org
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>
This commit is contained in:
parent
381dfcf047
commit
0ca0c47397
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user