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

Xueming Li xuemingl at nvidia.com
Sun Oct 22 16:21:56 CEST 2023


Hi,

FYI, your patch has been queued to stable release 22.11.4

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/15/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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=948b21bd593a998e1231654626d0a01d195ce18b

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 948b21bd593a998e1231654626d0a01d195ce18b 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
Cc: Xueming Li <xuemingl at nvidia.com>

[ 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 66fc87659a..d3c05941d5 100644
--- a/.mailmap
+++ b/.mailmap
@@ -727,6 +727,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>
diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index bca89362e1..fb2c9364cd 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -2701,6 +2701,7 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)

 	iavf_default_rss_disable(adapter);

+	iavf_dev_stats_reset(eth_dev);

 	/* Start device watchdog */
 	iavf_dev_watchdog_enable(adapter);
--
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-10-22 22:17:37.541476400 +0800
+++ 0087-net-iavf-fix-port-stats-clearing.patch	2023-10-22 22:17:34.336723700 +0800
@@ -1 +1 @@
-From 57fc68cf11cf3ec49526d8a8eca98956d5b77989 Mon Sep 17 00:00:00 2001
+From 948b21bd593a998e1231654626d0a01d195ce18b Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 57fc68cf11cf3ec49526d8a8eca98956d5b77989 ]
@@ -12 +14,0 @@
-Cc: stable at dpdk.org
@@ -23 +25 @@
-index 85682c3ec4..013ad8cbca 100644
+index 66fc87659a..d3c05941d5 100644
@@ -26 +28 @@
-@@ -752,6 +752,7 @@ Krzysztof Galazka <krzysztof.galazka at intel.com>
+@@ -727,6 +727,7 @@ Krzysztof Galazka <krzysztof.galazka at intel.com>
@@ -35 +37 @@
-index c71b6565f3..27a6a7b80f 100644
+index bca89362e1..fb2c9364cd 100644
@@ -38 +40 @@
-@@ -2748,6 +2748,7 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
+@@ -2701,6 +2701,7 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)


More information about the stable mailing list