From de961b93066007ffcde12e49d8cd9bafd7201732 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 30 Nov 2021 16:57:54 +0100 Subject: cache: Filter set list on server side Fetch either all tables' sets at once, a specific table's sets or even a specific set if needed instead of iterating over the list of previously fetched tables and fetching for each, then ignoring anything returned that doesn't match the filter. Signed-off-by: Phil Sutter --- include/mnl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mnl.h b/include/mnl.h index 9d54aac8..8659879c 100644 --- a/include/mnl.h +++ b/include/mnl.h @@ -58,7 +58,7 @@ int mnl_nft_set_add(struct netlink_ctx *ctx, struct cmd *cmd, int mnl_nft_set_del(struct netlink_ctx *ctx, struct cmd *cmd); struct nftnl_set_list *mnl_nft_set_dump(struct netlink_ctx *ctx, int family, - const char *table); + const char *table, const char *set); int mnl_nft_setelem_add(struct netlink_ctx *ctx, const struct set *set, const struct expr *expr, unsigned int flags); -- cgit v1.2.3