diff options
author | Ong Boon Leong <[email protected]> | 2021-12-30 11:54:46 +0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-01-05 17:53:24 -0800 |
commit | 8121e78932018df48758985e00651e16ff34ae5f (patch) | |
tree | 2a574f00c7c099238006f01b3ba286893484b750 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | fa24d0b1d57825d1a5b802339728d4d8ac20b6d6 (diff) |
samples/bpf: xdpsock: Add time-out for cleaning Tx
When user sets tx-pkt-count and in case where there are invalid Tx frame,
the complete_tx_only_all() process polls indefinitely. So, this patch
adds a time-out mechanism into the process so that the application
can terminate automatically after it retries 3*polling interval duration.
v1->v2:
Thanks to Jesper's and Song Liu's suggestion.
- clean-up git message to remove polling log
- make the Tx time-out retries configurable with 1s granularity
Signed-off-by: Ong Boon Leong <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions