aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-plugin/src')
-rw-r--r--hicn-plugin/src/cache_policies/cs_lru.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hicn-plugin/src/cache_policies/cs_lru.c b/hicn-plugin/src/cache_policies/cs_lru.c
index 45c4b5b79..079af58ab 100644
--- a/hicn-plugin/src/cache_policies/cs_lru.c
+++ b/hicn-plugin/src/cache_policies/cs_lru.c
@@ -240,9 +240,7 @@ hicn_cs_lru_flush (vlib_main_t * vm, struct hicn_pit_cs_s *pitcs,
lrunode->bucket_id)
{
//The bucket is in the non overflown
- bucket =
- pool_elt_at_index (pitcs->pcs_table->ht_buckets,
- lrunode->bucket_id);
+ bucket = pitcs->pcs_table->ht_buckets + lrunode->bucket_id;
}
else
{