diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2020-09-23 17:50:52 +0200 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2020-09-28 18:25:30 +0200 |
commit | 32dccec98e4c7d7e4ce902e19ba8d1b29b823758 (patch) | |
tree | 95c5dec2083a3774c13bd5f896743cd6c5c42a7a /hicn-light/src/hicn/content_store/lru.h | |
parent | 7356408ca1554468c9d7b9840aaaee28b4341c8d (diff) |
[HICN-570] Message buffer (incl. CS and PIT changes)
Change-Id: I4c508e4b04dee3acbfc3da1d26e1770cb826f22b
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/content_store/lru.h')
-rw-r--r-- | hicn-light/src/hicn/content_store/lru.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/hicn-light/src/hicn/content_store/lru.h b/hicn-light/src/hicn/content_store/lru.h index 61341921f..574f9da7d 100644 --- a/hicn-light/src/hicn/content_store/lru.h +++ b/hicn-light/src/hicn/content_store/lru.h @@ -13,14 +13,18 @@ * limitations under the License. */ -#ifndef HICNLIGHT_CONTENT_STORE_LRU_H -#define HICNLIGHT_CONTENT_STORE_LRU_H +#ifndef HICNLIGHT_CS_LRU_H +#define HICNLIGHT_CS_LRU_H typedef struct { - // This LRU is just for keeping track of insertion and access order. - //ListLru *lru; - void * lru; -} content_store_lru_data_t; + off_t prev; + off_t next; +} cs_entry_lru_state_t; + +typedef struct { + off_t head; + off_t tail; +} cs_lru_state_t; typedef struct { uint64_t countExpiryEvictions; @@ -29,6 +33,6 @@ typedef struct { uint64_t countAdds; uint64_t countHits; uint64_t countMisses; -} content_store_lru_stats_t; +} cs_lru_stats_t; -#endif /* HICNLIGHT_CONTENT_STORE_LRU_H */ +#endif /* HICNLIGHT_CS_LRU_H */ |