]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add test for unstable CT lookup API
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Fri, 14 Jan 2022 16:39:50 +0000 (22:09 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 18 Jan 2022 22:26:42 +0000 (14:26 -0800)
commitf1a7ea600efdbb7e36626d6071cd685bf0a03eb2
tree42b3a82a545abd93b1398d80537fc6b6696bba4f
parentf156ad09dc6359820d642e2e660916553d9597af
selftests/bpf: Add test for unstable CT lookup API

This tests that we return errors as documented, and also that the kfunc
calls work from both XDP and TC hooks.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20220114163953.1455836-8-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/config
tools/testing/selftests/bpf/prog_tests/bpf_nf.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_bpf_nf.c [new file with mode: 0644]