aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorPetar Penkov <[email protected]>2019-08-12 16:30:39 -0700
committerDaniel Borkmann <[email protected]>2019-08-13 16:31:10 +0200
commit9840a4ffcf0b26e08472ed53d176a6a0f1d4c498 (patch)
tree5b8fa71c24e314f5c38f7ab7bab4212e30f24ecf /tools/perf/scripts/python/check-perf-trace.py
parentd66fa3c70e598746a907e5db5ed024035e01817a (diff)
selftests/bpf: fix race in flow dissector tests
Since the "last_dissection" map holds only the flow keys for the most recent packet, there is a small race in the skb-less flow dissector tests if a new packet comes between transmitting the test packet, and reading its keys from the map. If this happens, the test packet keys will be overwritten and the test will fail. Changing the "last_dissection" map to a hash map, keyed on the source/dest port pair resolves this issue. Additionally, let's clear the last test results from the map between tests to prevent previous test cases from interfering with the following test cases. Fixes: 0905beec9f52 ("selftests/bpf: run flow dissector tests in skb-less mode") Signed-off-by: Petar Penkov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions