From 560963c4d41e153344850e8c98eaac4f131d05cb Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 29 Apr 2021 22:19:07 +0200 Subject: cache: add hashtable cache for flowtable Add flowtable hashtable cache. Actually I am not expecting that many flowtables to benefit from the hashtable to be created by streamline this code with tables, chains, sets and policy objects. Signed-off-by: Pablo Neira Ayuso --- include/cache.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/cache.h') diff --git a/include/cache.h b/include/cache.h index 9605ef96..992f993c 100644 --- a/include/cache.h +++ b/include/cache.h @@ -92,4 +92,8 @@ void obj_cache_del(struct obj *obj); struct obj *obj_cache_find(const struct table *table, const char *name, uint32_t obj_type); +struct flowtable; +void ft_cache_add(struct flowtable *ft, struct table *table); +struct flowtable *ft_cache_find(const struct table *table, const char *name); + #endif /* _NFT_CACHE_H_ */ -- cgit v1.2.3