From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Miller Subject: [PATCH 2/2] net/ark: fix bug in stats_reset operation Date: Thu, 22 Jun 2017 08:30:44 -0400 Message-ID: <1498134644-14089-2-git-send-email-john.miller@atomicrules.com> References: <1498134644-14089-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-f193.google.com (mail-yw0-f193.google.com [209.85.161.193]) by dpdk.org (Postfix) with ESMTP id E22CF568A for ; Thu, 22 Jun 2017 14:30:50 +0200 (CEST) Received: by mail-yw0-f193.google.com with SMTP id u13so890964ywg.0 for ; Thu, 22 Jun 2017 05:30:50 -0700 (PDT) In-Reply-To: <1498134644-14089-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 55e6b24..fff2d8a 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