]> git.droids-corp.org - dpdk.git/commit
common/cnxk: fix flow deletion
authorSatheesh Paul <psatheesh@marvell.com>
Tue, 25 Jan 2022 04:15:26 +0000 (09:45 +0530)
committerJerin Jacob <jerinj@marvell.com>
Thu, 17 Feb 2022 06:33:16 +0000 (07:33 +0100)
commit40257b81b8ae239c630e27cfa81e136ad3a25dc3
treed38e848cf35ac9936758b3dae8979f662600264f
parent9132292e9912a8977506d90b730a20c13babc353
common/cnxk: fix flow deletion

When a flow is deleted, the counters are deleted without
being cleared first. This results in counter values being
retained and shown in flows created later. Hence, counter
is cleared before being deleted.

Updated driver to clear and delete counters upon flow deletion.

Fixes: a07f7ced436d ("common/cnxk: add NPC init and fini")
Cc: stable@dpdk.org
Signed-off-by: Satheesh Paul <psatheesh@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_npc.c