]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc326a60d048053c6ff8ae2fba9a011faec52ebe8
tree1a3f9e7bbd15eb876ae2b8c23e73cc34bf57de2b
parent19096ad569555d0aaa24a42fe674e1c5b896f063
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