]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit53bf521ed1b25b61b78261e6c144a68d90bfb455
tree65bc5a9786c3f3c0e972b800db4ebdf2e78e76c3
parentd661fc4803338e357e896ad2d77e2643b7f4d065
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: 75a12b7c2674 ("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