diff options
author | Daniel T. Lee | 2020-11-24 09:03:09 +0000 |
---|---|---|
committer | Andrii Nakryiko | 2020-11-26 19:33:36 -0800 |
commit | 0afe0a998c40085a6342e1aeb4c510cccba46caf (patch) | |
tree | 354155390bda479a23ceb624f27167c240dc0c6c /samples/bpf/test_lwt_bpf.sh | |
parent | c6497df0ddc3363c2c940d92c3af0b2620477003 (diff) |
samples: bpf: Fix lwt_len_hist reusing previous BPF map
Currently, lwt_len_hist's map lwt_len_hist_map is uses pinning, and the
map isn't cleared on test end. This leds to reuse of that map for
each test, which prevents the results of the test from being accurate.
This commit fixes the problem by removing of pinned map from bpffs.
Also, this commit add the executable permission to shell script
files.
Fixes: f74599f7c5309 ("bpf: Add tests and samples for LWT-BPF")
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201124090310.24374-7-danieltimlee@gmail.com
Diffstat (limited to 'samples/bpf/test_lwt_bpf.sh')
-rwxr-xr-x[-rw-r--r--] | samples/bpf/test_lwt_bpf.sh | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/samples/bpf/test_lwt_bpf.sh b/samples/bpf/test_lwt_bpf.sh index 65a976058dd3..65a976058dd3 100644..100755 --- a/samples/bpf/test_lwt_bpf.sh +++ b/samples/bpf/test_lwt_bpf.sh |