common/cnxk: fix missing RTE Flow counter reset
PATCH 1/1 common/cnxk: fix missing RTE Flow counter reset
From: Satheesh Paul <[email protected]>
Added code to clear counters upon flow deletion.
Fixes f9af9080746 ("common/cnxk: add mcam utility API")
Signed-off-by Satheesh Paul <[email protected]>
Reviewed-by Kiran Kumar Kokkilagadda <[email protected]>
--- drivers/common/cnxk/roc_npc_mcam.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/common/cnxk/roc_npc_mcam.c +3 -1
@@ -850,8 +850,10 @@ npc_flow_free_all_resources(struct npc *npc)for (idx =0 ; idx < npc->flow_max_priority; idx++) {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);
Signature · 1 line
2.35.3
Quoted 10 lines · On Tue, Sep 13, 2022 at 10:40 AM <[email protected]> wrote:
From: Satheesh Paul <[email protected]>
Added code to clear counters upon flow deletion.
Fixes f9af9080746 ("common/cnxk: add mcam utility API")Signed-off-by Satheesh Paul <[email protected]>Reviewed-by Kiran Kumar Kokkilagadda <[email protected]>
Please use Kiran Kumar K as it is consistent across tree.
Updated the git commit as follows and applied to
dpdk-next-net-mrvl/for-next-net. Thanks
common/cnxk: fix missing flow counter reset
Added code to clear counters upon flow deletion.
Fixes f9af9080746 ("common/cnxk: add mcam utility API")
Signed-off-by Satheesh Paul <[email protected]>
Reviewed-by Kiran Kumar K <[email protected]>
Quoted 23 lines
--- drivers/common/cnxk/roc_npc_mcam.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/common/cnxk/roc_npc_mcam.c +3
-2@@ -850,8 +850,10 @@ npc_flow_free_all_resources(struct npc *npc)for (idx =0 ; idx < npc->flow_max_priority; idx++) {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.35.3