summaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/pcs.h
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-10-09 13:38:03 +0000
committerGerrit Code Review <gerrit@fd.io>2019-10-09 13:38:03 +0000
commit80035e4aeffc64deb1e5f67dda94787ae571a490 (patch)
treeb94f9600a87725714890a2e69ea09efff439f7a9 /hicn-plugin/src/pcs.h
parent1e0e7377bb2854b49b5e52ec5a39b818640f644b (diff)
parentbf3eef203ec14f026f0e79f628f76b38f87b83e1 (diff)
Merge "[HICN-169] Fixed counters that were decrementing or negative."
Diffstat (limited to 'hicn-plugin/src/pcs.h')
-rw-r--r--hicn-plugin/src/pcs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-plugin/src/pcs.h b/hicn-plugin/src/pcs.h
index 28f9c3c37..c7e8a4b59 100644
--- a/hicn-plugin/src/pcs.h
+++ b/hicn-plugin/src/pcs.h
@@ -685,9 +685,9 @@ hicn_pcs_pit_delete (hicn_pit_cs_t * pitcs, hicn_pcs_entry_t ** pcs_entryp,
const hicn_dpo_vft_t * dpo_vft, dpo_id_t * hicn_dpo_id)
{
hash_entry->locks--;
- pitcs->pcs_pit_count--;
if (hash_entry->locks == 0)
{
+ pitcs->pcs_pit_count--;
hicn_pcs_delete_internal
(pitcs, pcs_entryp, hash_entry, node, vm, dpo_vft, hicn_dpo_id);
}