aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_flow_dissector.sh
diff options
context:
space:
mode:
authorShmulik Ladkani <shmulik.ladkani@gmail.com>2022-08-21 14:35:18 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2022-08-23 22:48:03 +0200
commit5deedfbee84278da3b76fb7176dc3742f56eb370 (patch)
tree71371f810e5019d0eb7ccc3749ca52fd2df061cf /tools/testing/selftests/bpf/test_flow_dissector.sh
parentbpf, flow_dissector: Introduce BPF_FLOW_DISSECTOR_CONTINUE retcode for bpf progs (diff)
downloadlinux-dev-5deedfbee84278da3b76fb7176dc3742f56eb370.tar.xz
linux-dev-5deedfbee84278da3b76fb7176dc3742f56eb370.zip
bpf, test_run: Propagate bpf_flow_dissect's retval to user's bpf_attr.test.retval
Formerly, a boolean denoting whether bpf_flow_dissect returned BPF_OK was set into 'bpf_attr.test.retval'. Augment this, so users can check the actual return code of the dissector program under test. Existing prog_tests/flow_dissector*.c tests were correspondingly changed to check against each test's expected retval. Also, tests' resulting 'flow_keys' are verified only in case the expected retval is BPF_OK. This allows adding new tests that expect non BPF_OK. Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Stanislav Fomichev <sdf@google.com> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/bpf/20220821113519.116765-4-shmulik.ladkani@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/test_flow_dissector.sh')
0 files changed, 0 insertions, 0 deletions