aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nft_objref.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-03-28 12:06:51 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-04-24 10:29:09 +0200
commitcac20fcdf146b82d02e412d7a345f5826279cd82 (patch)
tree3054785860efdd6184a67fd3d6dbd5cfcee30257 /net/netfilter/nft_objref.c
parentnetfilter: nf_flow_table: fix offloading connections with SNAT+DNAT (diff)
downloadlinux-dev-cac20fcdf146b82d02e412d7a345f5826279cd82.tar.xz
linux-dev-cac20fcdf146b82d02e412d7a345f5826279cd82.zip
netfilter: nf_tables: simplify lookup functions
Replace the nf_tables_ prefix by nft_ and merge code into single lookup function whenever possible. In many cases we go over the 80-chars boundary function names, this save us ~50 LoC. 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 0b02407773ad..cdf348f751ec 100644
--- a/net/netfilter/nft_objref.c
+++ b/net/netfilter/nft_objref.c
@@ -38,8 +38,8 @@ static int nft_objref_init(const struct nft_ctx *ctx,
return -EINVAL;
objtype = ntohl(nla_get_be32(tb[NFTA_OBJREF_IMM_TYPE]));
- obj = nf_tables_obj_lookup(ctx->table, tb[NFTA_OBJREF_IMM_NAME], objtype,
- genmask);
+ obj = nft_obj_lookup(ctx->table, tb[NFTA_OBJREF_IMM_NAME], objtype,
+ genmask);
if (IS_ERR(obj))
return -ENOENT;