net: netfilter: Remove ifdefs for code shared by BPF and ctnetlink
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Mon, 25 Jul 2022 08:51:30 +0000 (10:51 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 9 Aug 2022 16:41:54 +0000 (09:41 -0700)
commit6e116280b41b0cbfd90dfe9fa66e07ff348d50d5
tree1a3f9e7bbd15eb876ae2b8c23e73cc34bf57de2b
parentbe3bb83dab2df838cd9e681e3e9dcde87bfe4f95
net: netfilter: Remove ifdefs for code shared by BPF and ctnetlink

The current ifdefry for code shared by the BPF and ctnetlink side looks
ugly. As per Pablo's request, simplify this by unconditionally compiling
in the code. This can be revisited when the shared code between the two
grows further.

Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20220725085130.11553-1-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/net/netfilter/nf_conntrack_core.h
net/netfilter/nf_conntrack_core.c