aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorMagnus Karlsson <[email protected]>2021-09-22 09:56:08 +0200
committerDaniel Borkmann <[email protected]>2021-09-28 00:18:35 +0200
commit872a1184dbf2b6ed9f435d6a37ad8007126da982 (patch)
tree389a4edb72a0d44f60e48055456de28ce8fb48a4 /tools/perf/scripts/python/libxed.py
parent5b132056123dfe25b0a8c96d1420e9c31cb8edf8 (diff)
selftests: xsk: Put the same buffer only once in the fill ring
Fix a problem where the fill ring was populated with too many entries. If number of buffers in the umem was smaller than the fill ring size, the code used to loop over from the beginning of the umem and start putting the same buffers in again. This is racy indeed as a later packet can be received overwriting an earlier one before the Rx thread manages to validate it. Signed-off-by: Magnus Karlsson <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions