aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorFlorian Lehner <[email protected]>2023-11-05 09:58:01 +0100
committerAlexei Starovoitov <[email protected]>2023-11-09 19:07:38 -0800
commit9b75dbeb36fcd9fc7ed51d370310d0518a387769 (patch)
treed7a194a3c697a90c9b404db8c9f4d000c00021de /tools/perf/scripts/python/sched-migration.py
parentf2d2c7e1b7c9e8847478769d6e1f8a76b5e91952 (diff)
bpf, lpm: Fix check prefixlen before walking trie
When looking up an element in LPM trie, the condition 'matchlen == trie->max_prefixlen' will never return true, if key->prefixlen is larger than trie->max_prefixlen. Consequently all elements in the LPM trie will be visited and no element is returned in the end. To resolve this, check key->prefixlen first before walking the LPM trie. Fixes: b95a5c4db09b ("bpf: add a longest prefix match trie map implementation") Signed-off-by: Florian Lehner <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions