From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atomicrules-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UP7gcLE+RKJ6s4JQ4bIYlIf5dp+SqpNpOa/yyaDLNIA=; b=VOHyf/EugQeZr5h0h9bKCfHruwwGvtwo/KoRMdGdPa110sh8lpN3tO4CjiYNencKks icFB4jdMzp2zus492f1Xj5In0Gw97P6H7FS6txIQaF7TJ9MbaTsehsHgt/jokF9wPSuA WlkqtrUPMW0UwhhueBjIqHD3hPjq7Wor78lV2bWlSm9MKRYIXqmWVA10rCJ65tbovKyk bqS/Lc0Arh/lerjSNMVvonVckAli2rCqjAVo2WUT6D+LVmnI2Kf8rUt+dE/b8VOBS6mO H2EA7cdml0BzLLLyJ1R7RV0KxARWSnpKfbTEdbO5p9S5WDY6jHCYcYr//6jy0oVT1L/0 683g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UP7gcLE+RKJ6s4JQ4bIYlIf5dp+SqpNpOa/yyaDLNIA=; b=NFWPFOD9UTNKlkuNkmtOb9WquGb/qd/ANnUqybTYflMf1wfOsamd2H/HRYRw+N923X hyfwJSPBPlrC7dMXdEByBnVvKTPQo83AQEFTGqU3eJYH4wYFJt6TT53gvA6YsAd1LYaX E1ZZBKKZBqSRLfxQC1sjcDiogYGFaZ/f75+sBVZqD4MsduaoYfOMBO4gDVBEoUrqZNxd 0v5Of8spl3NOfiTpcAimhq8L8tJA1JckjNRH9i9+OUwKz9yB8pmJkgPj7wGT3tSojpDz gXqbgWnfK2EQK/q6ZvLYtqNc81EHGs5ojc2ihBy6Arl6OXqxhbzqO/Xmz8FI2DAJfTmB kSEA== X-Gm-Message-State: AKS2vOwNNCui7aynQMwe5vfxJry1Bftz2ISzY6xS8StCv6YYPXfU+XuX ENN0RpsW0Gqp1yYlrrc= X-Received: by 10.129.146.74 with SMTP id j71mr6957048ywg.41.1498644517313; Wed, 28 Jun 2017 03:08:37 -0700 (PDT) Received: from LOT3.lot.com (applwiedg03-a5-0-486.network.tds.net. [66.222.27.1]) by smtp.gmail.com with ESMTPSA id z187sm720951ywd.74.2017.06.28.03.08.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Jun 2017 03:08:36 -0700 (PDT) From: John Miller To: dev@dpdk.org Cc: shepard.siegel@atomicrules.com, ed.czeck@atomicrules.com, John Miller Date: Wed, 28 Jun 2017 06:08:24 -0400 Message-Id: <1498644504-30252-4-git-send-email-john.miller@atomicrules.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1498644504-30252-1-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> Subject: [dpdk-dev] [PATCH v2 3/3] net/ark: fix bug in stats_reset operation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2017 10:08:38 -0000 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