From 227103cc29b811a06e433c756d0db071fb823295 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Fri, 31 Jan 2020 16:14:31 +0100 Subject: [HICN-500] Inline bucket retrieved with pool pointer + bucket id instead of pool_elt_at_index Change-Id: I958a1847363aacfa7c45e65550e5f77e14f4902e Signed-off-by: Alberto Compagno --- hicn-plugin/src/cache_policies/cs_lru.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hicn-plugin/src') 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 { -- cgit 1.2.3-korg