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)
commite2d75e954c0a277b8fa0ddf666ddd4f9b73195f7
tree772801bba2c6592be345947e6e5d165fdef6d2f5
parent864b656f82ccd433d3e38149c3673d295ad64bf6
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