patch 'common/cnxk: fix missing flow counter reset' has been queued to stable release 21.11.3

Kevin Traynor ktraynor at redhat.com
Tue Oct 25 17:06:19 CEST 2022


Hi,

FYI, your patch has been queued to stable release 21.11.3

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/01/22. 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/97083f144ce0df4a66c56c5c6b38113e3303972e

Thanks.

Kevin

---
>From 97083f144ce0df4a66c56c5c6b38113e3303972e Mon Sep 17 00:00:00 2001
From: Satheesh Paul <psatheesh at marvell.com>
Date: Tue, 13 Sep 2022 10:40:19 +0530
Subject: [PATCH] common/cnxk: fix missing flow counter reset

[ upstream commit b494807269c077ee82fc210e00da0e4e1121c5b8 ]

Added code to clear counters upon flow deletion.

Fixes: f9af9080746 ("common/cnxk: add mcam utility API")

Signed-off-by: Satheesh Paul <psatheesh at marvell.com>
Reviewed-by: Kiran Kumar K <kirankumark at marvell.com>
---
 drivers/common/cnxk/roc_npc_mcam.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/common/cnxk/roc_npc_mcam.c b/drivers/common/cnxk/roc_npc_mcam.c
index a16ba3f7be..eb0a982589 100644
--- a/drivers/common/cnxk/roc_npc_mcam.c
+++ b/drivers/common/cnxk/roc_npc_mcam.c
@@ -712,6 +712,8 @@ npc_flow_free_all_resources(struct npc *npc)
 		while ((flow = TAILQ_FIRST(&npc->flow_list[idx])) != NULL) {
 			npc_rss_group_free(npc, flow);
-			if (flow->ctr_id != NPC_COUNTER_NONE)
+			if (flow->ctr_id != NPC_COUNTER_NONE) {
+				rc |= npc_mcam_clear_counter(npc, flow->ctr_id);
 				rc |= npc_mcam_free_counter(npc, flow->ctr_id);
+			}
 
 			npc_delete_prio_list_entry(npc, flow);
-- 
2.37.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2022-10-25 14:18:59.102948230 +0100
+++ 0024-common-cnxk-fix-missing-flow-counter-reset.patch	2022-10-25 14:18:58.379797976 +0100
@@ -1 +1 @@
-From b494807269c077ee82fc210e00da0e4e1121c5b8 Mon Sep 17 00:00:00 2001
+From 97083f144ce0df4a66c56c5c6b38113e3303972e Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b494807269c077ee82fc210e00da0e4e1121c5b8 ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index 245eeb0107..b067dc4b91 100644
+index a16ba3f7be..eb0a982589 100644
@@ -21 +22 @@
-@@ -867,6 +867,8 @@ npc_flow_free_all_resources(struct npc *npc)
+@@ -712,6 +712,8 @@ npc_flow_free_all_resources(struct npc *npc)



More information about the stable mailing list