aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2020-01-31 15:48:25 +0000
committerGerrit Code Review <gerrit@fd.io>2020-01-31 15:48:25 +0000
commit1bb4d50dcedb8198353e294588df075da79e3439 (patch)
tree66f6b07152b7e8b7ecb662e99c8f4604a94bb3c2
parent1359b287b0821afd465843dd4932373134b54705 (diff)
parent227103cc29b811a06e433c756d0db071fb823295 (diff)
Merge "[HICN-500] Inline bucket retrieved with pool pointer + bucket id instead of pool_elt_at_index"
-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
{