]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ctnetlink: remove get_ct indirection
authorFlorian Westphal <fw@strlen.de>
Wed, 20 Jan 2021 15:30:03 +0000 (16:30 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 25 Jan 2021 21:06:11 +0000 (22:06 +0100)
commit3881c44d0a9280268588de8a8fb777afa9b9227d
tree257c5e24e020641faf304c3f8d3a3d57e71130e7
parentc027e2f42c7c0241c612faa45847a33da62b61be
netfilter: ctnetlink: remove get_ct indirection

Use nf_ct_get() directly, its a small inline helper without dependencies.

Add CONFIG_NF_CONNTRACK guards to elide the relevant part when conntrack
isn't available at all.

v2: add ifdef guard around nf_ct_get call (kernel test robot)
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter.h
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue.c