selftests/bpf: Add connmark read test
authorDaniel Xu <dxu@dxuuu.xyz>
Thu, 11 Aug 2022 21:55:26 +0000 (15:55 -0600)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 15 Aug 2022 18:53:25 +0000 (20:53 +0200)
commit99799de2cba2d399acf65f49a986b3d5cf0732ab
treea3a8f5bce96785ee7ee1274135b4287131dc8613
parente81fbd4c1ba7b128a198c2843665e1186db449b6
selftests/bpf: Add connmark read test

Test that the prog can read from the connection mark. This test is nice
because it ensures progs can interact with netfilter subsystem
correctly.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/bpf/d3bc620a491e4c626c20d80631063922cbe13e2b.1660254747.git.dxu@dxuuu.xyz
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
tools/testing/selftests/bpf/progs/test_bpf_nf.c