aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nft_objref.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-05-13 22:29:55 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2021-05-28 21:11:41 +0200
commit0974cff3eb66764cc86b60f1071958acc432a4e8 (patch)
tree7053d9d5aa8d8a9380d3184e955b916e60419377 /net/netfilter/nft_objref.c
parentnetfilter: nft_set_pipapo_avx2: Skip LDMXCSR, we don't need a valid MXCSR state (diff)
downloadlinux-dev-0974cff3eb66764cc86b60f1071958acc432a4e8.tar.xz
linux-dev-0974cff3eb66764cc86b60f1071958acc432a4e8.zip
netfilter: add and use nft_set_do_lookup helper
Followup patch will add a CONFIG_RETPOLINE wrapper to avoid the ops->lookup() indirection cost for retpoline builds. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_objref.c')
-rw-r--r--net/netfilter/nft_objref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/nft_objref.c b/net/netfilter/nft_objref.c
index 7e47edee88ee..94b2327e71dc 100644
--- a/net/netfilter/nft_objref.c
+++ b/net/netfilter/nft_objref.c
@@ -9,7 +9,7 @@
#include <linux/netlink.h>
#include <linux/netfilter.h>
#include <linux/netfilter/nf_tables.h>
-#include <net/netfilter/nf_tables.h>
+#include <net/netfilter/nf_tables_core.h>
#define nft_objref_priv(expr) *((struct nft_object **)nft_expr_priv(expr))
@@ -110,7 +110,7 @@ static void nft_objref_map_eval(const struct nft_expr *expr,
struct nft_object *obj;
bool found;
- found = set->ops->lookup(net, set, &regs->data[priv->sreg], &ext);
+ found = nft_set_do_lookup(net, set, &regs->data[priv->sreg], &ext);
if (!found) {
ext = nft_set_catchall_lookup(net, set);
if (!ext) {