]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit83ace77f51175023c3757e2d08a92565f9b1c7f3
tree257c5e24e020641faf304c3f8d3a3d57e71130e7
parenta61e4b60761fa7fa2cfde6682760763537ce5549
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