]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add tests for writing to nf_conn:mark
authorDaniel Xu <dxu@dxuuu.xyz>
Wed, 7 Sep 2022 16:40:41 +0000 (10:40 -0600)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 11 Sep 2022 00:27:32 +0000 (17:27 -0700)
commit39a73c33f521c2eabb90dc5f4a9981228a5580a7
tree772801bba2c6592be345947e6e5d165fdef6d2f5
parent81678e31e1ebb342822223323eaa48dda5cee093
selftests/bpf: Add tests for writing to nf_conn:mark

Add a simple extension to the existing selftest to write to
nf_conn:mark. Also add a failure test for writing to unsupported field.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/f78966b81b9349d2b8ebb4cee2caf15cb6b38ee2.1662568410.git.dxu@dxuuu.xyz
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
tools/testing/selftests/bpf/progs/test_bpf_nf_fail.c