diff options
| author | Shmulik Ladkani <[email protected]> | 2022-08-21 11:35:18 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-08-23 20:48:03 +0000 |
| commit | 5deedfbee84278da3b76fb7176dc3742f56eb370 (patch) | |
| tree | 71371f810e5019d0eb7ccc3749ca52fd2df061cf /scripts/bpf_doc.py | |
| parent | bpf, flow_dissector: Introduce BPF_FLOW_DISSECTOR_CONTINUE retcode for bpf progs (diff) | |
| download | kernel-5deedfbee84278da3b76fb7176dc3742f56eb370.tar.gz kernel-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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Stanislav Fomichev <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
