patch 'net/iavf: fix port stats clearing' has been queued to stable release 21.11.6

Kevin Traynor ktraynor at redhat.com
Thu Nov 2 14:12:05 CET 2023


Hi,

FYI, your patch has been queued to stable release 21.11.6

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/08/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/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/1b0d948303a8c2c9ab2c33b03630633f6ad277e8

Thanks.

Kevin

---
>From 1b0d948303a8c2c9ab2c33b03630633f6ad277e8 Mon Sep 17 00:00:00 2001
From: Yiding Zhou <yidingx.zhou at intel.com>
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 <kuanx.xu at intel.com>
Signed-off-by: Yiding Zhou <yidingx.zhou at intel.com>
Acked-by: Qi Zhang <qi.z.zhang at intel.com>
---
 .mailmap                       | 1 +
 drivers/net/iavf/iavf_ethdev.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/.mailmap b/.mailmap
index d101d0b24c..743366389a 100644
--- a/.mailmap
+++ b/.mailmap
@@ -727,4 +727,5 @@ Krzysztof Kanas <kkanas at marvell.com> <krzysztof.kanas at caviumnetworks.com>
 Krzysztof Karas <krzysztof.karas at intel.com>
 Krzysztof Witek <krzysztof.witek at 6wind.com>
+Kuan Xu <kuanx.xu at intel.com>
 Kuba Kozak <kubax.kozak at intel.com>
 Kumar Amber <kumar.amber at intel.com>
diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index 476a8fd1b5..f9eef7233d 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -2626,4 +2626,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
 	iavf_default_rss_disable(adapter);
 
+	iavf_dev_stats_reset(eth_dev);
 
 	/* Start device watchdog */
-- 
2.41.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-11-02 13:09:42.259435567 +0000
+++ 0059-net-iavf-fix-port-stats-clearing.patch	2023-11-02 13:09:40.869163515 +0000
@@ -1 +1 @@
-From 57fc68cf11cf3ec49526d8a8eca98956d5b77989 Mon Sep 17 00:00:00 2001
+From 1b0d948303a8c2c9ab2c33b03630633f6ad277e8 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 57fc68cf11cf3ec49526d8a8eca98956d5b77989 ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 85682c3ec4..013ad8cbca 100644
+index d101d0b24c..743366389a 100644
@@ -26 +27 @@
-@@ -753,4 +753,5 @@ Krzysztof Kanas <kkanas at marvell.com> <krzysztof.kanas at caviumnetworks.com>
+@@ -727,4 +727,5 @@ Krzysztof Kanas <kkanas at marvell.com> <krzysztof.kanas at caviumnetworks.com>
@@ -33 +34 @@
-index c71b6565f3..27a6a7b80f 100644
+index 476a8fd1b5..f9eef7233d 100644
@@ -36 +37 @@
-@@ -2749,4 +2749,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
+@@ -2626,4 +2626,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)



More information about the stable mailing list