From: John Miller Date: Wed, 28 Jun 2017 10:08:24 +0000 (-0400) Subject: net/ark: fix stats reset X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f588d3a5e247742a6ce36347d686af11bc368c5f;p=dpdk.git net/ark: fix stats reset Repairs a bug in the stats_reset where the wrong queue was being passed into Tx reset. 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 5733ba397a..6db362b044 100644 --- a/drivers/net/ark/ark_ethdev.c +++ b/drivers/net/ark/ark_ethdev.c @@ -842,7 +842,7 @@ eth_ark_dev_stats_reset(struct rte_eth_dev *dev) (struct ark_adapter *)dev->data->dev_private; for (i = 0; i < dev->data->nb_tx_queues; i++) - eth_tx_queue_stats_reset(dev->data->rx_queues[i]); + eth_tx_queue_stats_reset(dev->data->tx_queues[i]); for (i = 0; i < dev->data->nb_rx_queues; i++) eth_rx_queue_stats_reset(dev->data->rx_queues[i]); if (ark->user_ext.stats_reset)