diff options
author | Felix Maurer <[email protected]> | 2022-02-11 18:43:36 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-02-15 10:10:31 -0800 |
commit | 61d06f01f9710b327a53492e5add9f972eb909b3 (patch) | |
tree | e303c1821d79ea5a8b6973b88cffe77aeab3d1d7 /tools/perf/scripts/python/compaction-times.py | |
parent | 3df9d803163e1616c2e742be8a7bfc00ac444ea8 (diff) |
selftests: bpf: Check bpf_msg_push_data return value
bpf_msg_push_data may return a non-zero value to indicate an error. The
return value should be checked to prevent undetected errors.
To indicate an error, the BPF programs now perform a different action
than their intended one to make the userspace test program notice the
error, i.e., the programs supposed to pass/redirect drop, the program
supposed to drop passes.
Fixes: 84fbfe026acaa ("bpf: test_sockmap add options to use msg_push_data")
Signed-off-by: Felix Maurer <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/89f767bb44005d6b4dd1f42038c438f76b3ebfad.1644601294.git.fmaurer@redhat.com
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions