From: John Miller Date: Fri, 6 Oct 2017 18:03:27 +0000 (-0400) Subject: net/ark: fix loop counter X-Git-Tag: spdx-start~1592 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=22862a0213d3888d4ba22f8ae0d62d5e0c44b683;p=dpdk.git net/ark: fix loop counter Change loop counter that should be based on the number of rx queues, not tx queues. This only affects debug output. Fixes: 727b3fe292bc ("net/ark: integrate PMD") Cc: stable@dpdk.org Signed-off-by: John Miller --- diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c index 7222139b4e..0d608460a6 100644 --- a/drivers/net/ark/ark_ethdev.c +++ b/drivers/net/ark/ark_ethdev.c @@ -698,7 +698,7 @@ eth_ark_dev_stop(struct rte_eth_dev *dev) ark_udm_dump_stats(ark->udm.v, "Post stop"); ark_udm_dump_perf(ark->udm.v, "Post stop"); - for (i = 0; i < dev->data->nb_tx_queues; i++) + for (i = 0; i < dev->data->nb_rx_queues; i++) eth_ark_rx_dump_queue(dev, i, __func__); /* Stop the packet checker if it is running */