aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorMagnus Karlsson <[email protected]>2021-09-22 09:56:04 +0200
committerDaniel Borkmann <[email protected]>2021-09-28 00:18:35 +0200
commitdb804cfc21e969a5a4ada4b8142f711def5ed339 (patch)
tree42e7c991a77c6249bca3f0475a39d064c0722c63 /tools/perf/scripts/python/libxed.py
parent57f7f8b6bc0bc80d94443f94fe5f21f266499a2b (diff)
ice: Use the xsk batched rx allocation interface
Use the new xsk batched rx allocation interface for the zero-copy data path. As the array of struct xdp_buff pointers kept by the driver is really a ring that wraps, the allocation routine is modified to detect a wrap and in that case call the allocation function twice. The allocation function cannot deal with wrapped rings, only arrays. As we now know exactly how many buffers we get and that there is no wrapping, the allocation function can be simplified even more as all if-statements in the allocation loop can be removed, improving performance. 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