aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLi RongQing <[email protected]>2020-11-24 15:21:14 +0800
committerDaniel Borkmann <[email protected]>2020-11-25 13:18:47 +0100
commitdb13db9f67fe5049159a05e870daedcee5879f8d (patch)
tree96e63b5d852f2863129b502775d7da57e0255995 /tools/perf/scripts/python
parent59e2e27d227a0a4e7ec0e22c63ca36a5ad1ab438 (diff)
libbpf: Add support for canceling cached_cons advance
Add a new function for returning descriptors the user received after an xsk_ring_cons__peek call. After the application has gotten a number of descriptors from a ring, it might not be able to or want to process them all for various reasons. Therefore, it would be useful to have an interface for returning or cancelling a number of them so that they are returned to the ring. This patch adds a new function called xsk_ring_cons__cancel that performs this operation on nb descriptors counted from the end of the batch of descriptors that was received through the peek call. Signed-off-by: Li RongQing <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> [ Magnus Karlsson: rewrote changelog ] Acked-by: Magnus Karlsson <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions