]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add tests for new nf_conntrack kfuncs
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 21 Jul 2022 13:42:43 +0000 (15:42 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Jul 2022 04:03:17 +0000 (21:03 -0700)
commit1b2c6a2e279249fad9cfe06fb14ce918b164e1db
tree4091aca8a078aeb91472c16e91c23dc337b8ccd1
parentc4f6f1b3a0da2a9f21f8f0061ae2bd7bdff9cbd4
selftests/bpf: Add tests for new nf_conntrack kfuncs

Introduce selftests for the following kfunc helpers:
- bpf_xdp_ct_alloc
- bpf_skb_ct_alloc
- bpf_ct_insert_entry
- bpf_ct_set_timeout
- bpf_ct_change_timeout
- bpf_ct_set_status
- bpf_ct_change_status

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20220721134245.2450-12-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
tools/testing/selftests/bpf/progs/test_bpf_nf.c