From 797b4f343fe248ca7a516b68d93895121e574c15 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 29 Apr 2021 20:04:55 +0200 Subject: src: pass chain name to chain_cache_find() You can identify chains through the unique handle in deletions, update this interface to take a string instead of the handle to prepare for the introduction of 64-bit handle chain lookups. Signed-off-by: Pablo Neira Ayuso --- include/cache.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/cache.h b/include/cache.h index f500e1b1..00092767 100644 --- a/include/cache.h +++ b/include/cache.h @@ -57,8 +57,7 @@ int cache_update(struct nft_ctx *nft, unsigned int flags, struct list_head *msgs void cache_release(struct nft_cache *cache); void chain_cache_add(struct chain *chain, struct table *table); -struct chain *chain_cache_find(const struct table *table, - const struct handle *handle); +struct chain *chain_cache_find(const struct table *table, const char *name); void set_cache_add(struct set *set, struct table *table); struct set *set_cache_find(const struct table *table, const char *name); -- cgit v1.2.3