diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-05-31 00:08:10 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-06-07 12:23:36 +0200 |
commit | e2b750d78b55d783f6ff4a1ab1e96f01e3e2ccfb (patch) | |
tree | a58f0436168f058418e63f222be257cb2bee5cd9 /net/netfilter/nf_conntrack_standalone.c | |
parent | netfilter: nfnetlink: add struct nfgenmsg to struct nfnl_info and use it (diff) | |
download | linux-dev-e2b750d78b55d783f6ff4a1ab1e96f01e3e2ccfb.tar.xz linux-dev-e2b750d78b55d783f6ff4a1ab1e96f01e3e2ccfb.zip |
netfilter: nf_tables: remove nft_ctx_init_from_elemattr()
Replace nft_ctx_init_from_elemattr() by nft_table_lookup() and set up
the context structure right before it is really needed.
Moreover, nft_ctx_init_from_elemattr() is setting up the context
structure for codepaths where this is not really needed at all.
This helper function is also not helping to consolidate code, removing
it saves us 4 LoC.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_standalone.c')
0 files changed, 0 insertions, 0 deletions