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

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Oct 19 01:59:20 CEST 2023


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 <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>
---
 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 at 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.galazka at intel.com>
- 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>
- Kumara Parameshwaran <kumaraparamesh92 at gmail.com> <kparameshwar at vmware.com>
@@ -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);


More information about the stable mailing list