diff options
| author | Maciej Fijalkowski <[email protected]> | 2022-04-13 17:30:11 +0200 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-04-15 21:10:57 +0200 |
| commit | 0f8bf018899e0c3137912cb6d547d0d072fc3d20 (patch) | |
| tree | a150e0010324979f60f200ad8cf655ee3c833fe4 /tools/perf/scripts/python/futex-contention.py | |
| parent | ed7ae2d6221708971eb20a92f3775dac9cddec14 (diff) | |
ixgbe, xsk: Diversify return values from xsk_wakeup call paths
Currently, when debugging AF_XDP workloads, one can correlate the -ENXIO
return code as the case that XSK is not in the bound state. Returning
same code from ndo_xsk_wakeup can be misleading and simply makes it
harder to follow what is going on.
Change ENXIOs in ixgbe's ndo_xsk_wakeup() implementation to EINVALs, so
that when probing it is clear that something is wrong on the driver
side, not the xsk_{recv,send}msg.
There is a -ENETDOWN that can happen from both kernel/driver sides
though, but I don't have a correct replacement for this on one of the
sides, so let's keep it that way.
Signed-off-by: Maciej Fijalkowski <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions