From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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=CE/OpTlor5nSyBqodbV0AlWNwJL8MbsqiE8HdEZ0rC0=; b=OpM1Ua3QxCU8L+Et2U6YtEfHDFom0I6Dgdjkno8GYuJcVkRYHcW0XhQDZfa2GWLWX/ FIKN36RKZI75+AfY0F0s5pZ4CQY165dMWn7a4sAAXW3A5tOaFfbg5iPuIz9FuNUZW2Q1 44M7jVDwH6k0JY06s5e+fETVul0VXiFIOUFzp8rm7FovBYqHlwi/NViRkEABXCU32N7H QNcO9dM5rOZNCEJStpbcFgU+nxvzN19ZAaLFsIqB6NMXPsXzpbKoBL8u0acBgWBRe+3e 0ZSsKs9NmfSia+u+MiCtEbuRd4bSp5taXyZpGNxPR2pY17VqiuODhvR/5DOrTI9bsJsB +Ucw== 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=CE/OpTlor5nSyBqodbV0AlWNwJL8MbsqiE8HdEZ0rC0=; b=FXuyVcqX/oaaYjW7QeC7mCyjjcqSmzK6BoPl1I7zCob8M47jyw+Bo4lNAEpgw2/kRH 1TB0XwuHZhuzZHLezkXwKxqeXCFK8hgSe6N7a6pe96MJmcBTuLopiVcMRFU72qmf1aUN af8GxCleFQ251tYPJJrn+voafAOd9wTEQpMjXwrzvGl/Qn8ZhYHmzPLMIeZT7vIurevU uHbIrMTTgol5UM8kvi4J++2umNrndrtRWMFd6cTyAWcgwgjp1E9f15IbEZMaVyZVuRVR U2na9jAhGECYlv10FckYYF/gHyXuns+7X6cgqRwYDDnkr0uA/CFEkewH87eaeZy2GvpG QI3A== X-Gm-Message-State: AKS2vOx16oeIUaQtimwVltGlctJKnoxL1D99hj3ki22/GoDj0jbJQ8SG M/5ee4yU04mrc54FxmY= X-Received: by 10.129.98.68 with SMTP id w65mr842627ywb.130.1498134649845; Thu, 22 Jun 2017 05:30:49 -0700 (PDT) Received: from LOT3.Home (h69-130-167-161.cntcnh.dsl.dynamic.tds.net. [69.130.167.161]) by smtp.gmail.com with ESMTPSA id d144sm461460ywe.73.2017.06.22.05.30.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Jun 2017 05:30:49 -0700 (PDT) From: John Miller To: dev@dpdk.org Cc: shepard.siegel@atomicrules.com, ed.czeck@atomicrules.com, John Miller Date: Thu, 22 Jun 2017 08:30:44 -0400 Message-Id: <1498134644-14089-2-git-send-email-john.miller@atomicrules.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1498134644-14089-1-git-send-email-john.miller@atomicrules.com> References: <1498134644-14089-1-git-send-email-john.miller@atomicrules.com> Subject: [dpdk-dev] [PATCH 2/2] 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: Thu, 22 Jun 2017 12:30:51 -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 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