net/ark: fix stats reset
authorJohn Miller <john.miller@atomicrules.com>
Wed, 28 Jun 2017 10:08:24 +0000 (06:08 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000 (15:00 +0200)
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 <john.miller@atomicrules.com>
drivers/net/ark/ark_ethdev.c

index 5733ba3..6db362b 100644 (file)
@@ -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)