]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Eliminate pointless calls to nft_family_ops_lookup()
authorPhil Sutter <phil@nwl.cc>
Wed, 21 Aug 2019 08:42:19 +0000 (10:42 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 25 Nov 2019 22:31:00 +0000 (23:31 +0100)
commita5877a214b6bb2e16ffbbcfd7512ff5cdbf03906
tree7b1be339190ff4b82b9c5c830a06390266e811b2
parent441d80c4cfa713b8261947a2cb0e780537454e71
nft: Eliminate pointless calls to nft_family_ops_lookup()

If nft_handle is available, use its 'ops' field instead of performing a
new lookup. For the same reason, there is no need to pass ops pointer to
__nft_print_header().

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c