diff options
| author | Tushar Vyavahare <[email protected]> | 2024-04-02 11:45:27 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2024-04-03 16:03:57 +0200 |
| commit | 776021e07fd0d7592c767e60929b954e82676186 (patch) | |
| tree | cf116fab1b4f5ca6f3aa7e25c7b2fae5c8c6c592 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | bee3a7b07624223526c1fea465557068546d3b3c (diff) | |
selftests/xsk: Introduce set_ring_size function with a retry mechanism for handling AF_XDP socket closures
Introduce a new function, set_ring_size(), to manage asynchronous AF_XDP
socket closure. Retry set_hw_ring_size up to SOCK_RECONF_CTR times if it
fails due to an active AF_XDP socket. Return an error immediately for
non-EBUSY errors. This enhances robustness against asynchronous AF_XDP
socket closures during ring size changes.
Signed-off-by: Tushar Vyavahare <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Magnus Karlsson <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions