bpf: Allow to change skb mark in test_run
authorNikita V. Shirokov <tehnerd@tehnerd.com>
Wed, 18 Dec 2019 20:57:47 +0000 (12:57 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 19 Dec 2019 01:05:58 +0000 (17:05 -0800)
commit6de6c1f840c051017f2308503858ff19344c56b3
tree7a2e27cb5f4e23ab53555c247f4fe25d972c4a83
parentdacce6412e09b5dce19514e2c4e2a8aab0eb217f
bpf: Allow to change skb mark in test_run

allow to pass skb's mark field into bpf_prog_test_run ctx
for BPF_PROG_TYPE_SCHED_CLS prog type. that would allow
to test bpf programs which are doing decision based on this
field

Signed-off-by: Nikita V. Shirokov <tehnerd@tehnerd.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/bpf/test_run.c
tools/testing/selftests/bpf/prog_tests/skb_ctx.c
tools/testing/selftests/bpf/progs/test_skb_ctx.c