net: netfilter: move bpf_ct_set_nat_info kfunc in nf_nat_bpf.c
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 29 Sep 2022 22:38:43 +0000 (00:38 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 3 Oct 2022 16:17:32 +0000 (09:17 -0700)
commit820dc0523e05c12810bb6bf4e56ce26e4c1948a2
tree65bc5a9786c3f3c0e972b800db4ebdf2e78e76c3
parent736baae643cb1ccaeaf989ef8eb09ce085020479
net: netfilter: move bpf_ct_set_nat_info kfunc in nf_nat_bpf.c

Remove circular dependency between nf_nat module and nf_conntrack one
moving bpf_ct_set_nat_info kfunc in nf_nat_bpf.c

Fixes: 0fabd2aa199f ("net: netfilter: add bpf_ct_set_nat_info kfunc helper")
Suggested-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Tested-by: Yauheni Kaliuta <ykaliuta@redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/51a65513d2cda3eeb0754842e8025ab3966068d8.1664490511.git.lorenzo@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/net/netfilter/nf_conntrack_bpf.h
net/netfilter/Makefile
net/netfilter/nf_conntrack_bpf.c
net/netfilter/nf_nat_bpf.c [new file with mode: 0644]
net/netfilter/nf_nat_core.c