From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Miller Subject: [PATCH v2 3/3] net/ark: fix bug in stats_reset operation Date: Wed, 28 Jun 2017 06:08:24 -0400 Message-ID: <1498644504-30252-4-git-send-email-john.miller@atomicrules.com> References: <1498134644-14089-1-git-send-email-john.miller@atomicrules.com> <1498644504-30252-1-git-send-email-john.miller@atomicrules.com> Cc: shepard.siegel@atomicrules.com, ed.czeck@atomicrules.com, John Miller To: dev@dpdk.org Return-path: Received: from mail-yw0-f194.google.com (mail-yw0-f194.google.com [209.85.161.194]) by dpdk.org (Postfix) with ESMTP id 249E44C57 for ; Wed, 28 Jun 2017 12:08:37 +0200 (CEST) Received: by mail-yw0-f194.google.com with SMTP id z21so3090972ywz.2 for ; Wed, 28 Jun 2017 03:08:37 -0700 (PDT) In-Reply-To: <1498644504-30252-1-git-send-email-john.miller@atomicrules.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Repairs a bug in the stats_reset where the wrong queue was being passed into tx reset. Signed-off-by: John Miller --- drivers/net/ark/ark_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c index 5733ba3..6db362b 100644 --- a/drivers/net/ark/ark_ethdev.c +++ b/drivers/net/ark/ark_ethdev.c @@ -842,7 +842,7 @@ static void eth_ark_macaddr_remove(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) -- 1.9.1