From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 49E05431A0 for ; Thu, 19 Oct 2023 02:01:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4391D40A7A; Thu, 19 Oct 2023 02:01:14 +0200 (CEST) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mails.dpdk.org (Postfix) with ESMTP id D3B8340291 for ; Thu, 19 Oct 2023 02:01:12 +0200 (CEST) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-32dc9ff4a8fso1348113f8f.1 for ; Wed, 18 Oct 2023 17:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697673672; x=1698278472; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YUOOBjm+DppTiULVdooXcDxOZeVZk0fulx5ZMgUHRtU=; b=h+KoVY7LolrYVfPWNXJWJ/gS2UnSCSfq6InIVzOcvqbNWMJZvk70q/qGrGzIScFQuo 3k3Ss1ex5k4xbUc6yOZpjo41bzLSIWM2fXkEZgkXatvoecR9fS2WWsqcJW1rBBLnZ8V6 Ys3//RwMJdVTr2PEoHT4wQ73P8JWHlUWJ+OAuD7E5HCEHyDERPhegvjfxDDSsyMt9O2F EcwNvJ39BP5EIUmhwH9nEeXo4oGmKOPVVRiwPPQYYSHmQfal9LMlYx4T6FDGpb6I1pBf H7NPTaFIS/6CIGvT/lMRT7PDYK9uY6qg58s+Uq5i0cqPt8SsDv8bsDvFUVx8FHhdztHv 2TrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697673672; x=1698278472; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YUOOBjm+DppTiULVdooXcDxOZeVZk0fulx5ZMgUHRtU=; b=JPXEred2n/LIrOMnt+x54y3PXtMGPVL9LM3QQ3titeqXhSXGSNibqtfvm34CrJJRio WywjbCkncJhUtSVj5WynXob7C5H7ehj0AWO7vJoVPnbtLDVVoLROkqQdUT+Z2d0/gK7a toGHS/h0neA3ftUaiFUHILQBRwc7XKehJ6K/P3IZrCBXFYmn/tRwFS8k1SuGqN2djLmE unMISHptwcS7E4kDVlwf1iSWdwBEPMUB/8yAoq4+d6jCIUr9QUnGkQVpwKoKHACwmURT 5L40ibxZpal+f+NPvj9/cg4joGiwGPEQC4JHnx0ngHNMsJiwv0WvBELGdw8p3JCoCNTY BEAA== X-Gm-Message-State: AOJu0Yyg4I47dSAxDoWk5eFhwhl7lU8opSN2AiOQGAFRscafq8GWrlCJ edQDaiSJaWC2rf7Xi7By+dU= X-Google-Smtp-Source: AGHT+IHcGQQMuKSME+SFNFVhhNBUZGjCmXFo+AiYlCtCD75D6yEryFlgwGYKDEVX9B8bVX+UHZHyFw== X-Received: by 2002:adf:ee49:0:b0:32d:bc7d:c431 with SMTP id w9-20020adfee49000000b0032dbc7dc431mr341684wro.1.1697673672508; Wed, 18 Oct 2023 17:01:12 -0700 (PDT) Received: from localhost ([137.220.119.58]) by smtp.gmail.com with ESMTPSA id s2-20020a5d4242000000b00327b5ca093dsm3141256wrr.117.2023.10.18.17.01.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 17:01:12 -0700 (PDT) From: luca.boccassi@gmail.com To: Yiding Zhou Cc: Kuan Xu , Qi Zhang , dpdk stable Subject: patch 'net/iavf: fix port stats clearing' has been queued to stable release 20.11.10 Date: Thu, 19 Oct 2023 00:59:20 +0100 Message-Id: <20231018235930.3144-31-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231018235930.3144-1-luca.boccassi@gmail.com> References: <20231018235930.3144-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 20.11.10 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/21/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/e2ee086768ce210b5fb58c16051589641e6b09b0 Thanks. Luca Boccassi --- >From e2ee086768ce210b5fb58c16051589641e6b09b0 Mon Sep 17 00:00:00 2001 From: Yiding Zhou Date: Thu, 7 Sep 2023 10:39:42 +0800 Subject: [PATCH] net/iavf: fix port stats clearing [ upstream commit 57fc68cf11cf3ec49526d8a8eca98956d5b77989 ] After VF reset, kernel driver may reuse the original VSI without reset its stats. Call 'iavf_dev_stats_reset' during the initialization of the VF in order to clear any statistics that may exist from the last use of the VF and to avoid statistics errors. Fixes: 22b123a36d07 ("net/avf: initialize PMD") Signed-off-by: Kuan Xu Signed-off-by: Yiding Zhou Acked-by: Qi Zhang --- drivers/net/iavf/iavf_ethdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c index f3b3ff5e70..b6ace7e005 100644 --- a/drivers/net/iavf/iavf_ethdev.c +++ b/drivers/net/iavf/iavf_ethdev.c @@ -2076,6 +2076,8 @@ iavf_dev_init(struct rte_eth_dev *eth_dev) return ret; } + iavf_dev_stats_reset(eth_dev); + return 0; } -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-10-19 00:28:57.803515488 +0100 +++ 0031-net-iavf-fix-port-stats-clearing.patch 2023-10-19 00:28:56.289806424 +0100 @@ -1 +1 @@ -From 57fc68cf11cf3ec49526d8a8eca98956d5b77989 Mon Sep 17 00:00:00 2001 +From e2ee086768ce210b5fb58c16051589641e6b09b0 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 57fc68cf11cf3ec49526d8a8eca98956d5b77989 ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -18,3 +19,2 @@ - .mailmap | 1 + - drivers/net/iavf/iavf_ethdev.c | 1 + - 2 files changed, 2 insertions(+) + drivers/net/iavf/iavf_ethdev.c | 2 ++ + 1 file changed, 2 insertions(+) @@ -22,12 +21,0 @@ -diff --git a/.mailmap b/.mailmap -index 85682c3ec4..013ad8cbca 100644 ---- a/.mailmap -+++ b/.mailmap -@@ -752,6 +752,7 @@ Krzysztof Galazka - Krzysztof Kanas - Krzysztof Karas - Krzysztof Witek -+Kuan Xu - Kuba Kozak - Kumar Amber - Kumara Parameshwaran @@ -35 +23 @@ -index c71b6565f3..27a6a7b80f 100644 +index f3b3ff5e70..b6ace7e005 100644 @@ -38,3 +26,3 @@ -@@ -2748,6 +2748,7 @@ iavf_dev_init(struct rte_eth_dev *eth_dev) - - iavf_default_rss_disable(adapter); +@@ -2076,6 +2076,8 @@ iavf_dev_init(struct rte_eth_dev *eth_dev) + return ret; + } @@ -42,0 +31,3 @@ ++ + return 0; + } @@ -44,2 +34,0 @@ - /* Start device watchdog */ - iavf_dev_watchdog_enable(adapter);