common/cnxk: fix missing flow counter reset
Added code to clear counters upon flow deletion.
Fixes: f9af908074
("common/cnxk: add mcam utility API")
Cc: stable@dpdk.org
Signed-off-by: Satheesh Paul <psatheesh@marvell.com>
Reviewed-by: Kiran Kumar K <kirankumark@marvell.com>
This commit is contained in:
parent
d7b080f1e7
commit
b494807269
@ -866,8 +866,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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user