aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2020-01-31 16:14:31 +0100
committerAlberto Compagno <acompagn+fdio@cisco.com>2020-01-31 16:14:31 +0100
commit227103cc29b811a06e433c756d0db071fb823295 (patch)
tree05fe57cf62c503b6d7f5efc847855edb9cbaade3 /hicn-plugin/src
parentf1e21ec5c9e0d2ce070a5ae9331617236e7088a4 (diff)
[HICN-500] Inline bucket retrieved with pool pointer + bucket id instead of pool_elt_at_index
Change-Id: I958a1847363aacfa7c45e65550e5f77e14f4902e Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
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
{