Commit a817ead
stmmac, 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 stmmac'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 <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220413153015.453864-13-maciej.fijalkowski@intel.com1 parent 7b7f2f2 commit a817ead
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6565 | 6565 | | |
6566 | 6566 | | |
6567 | 6567 | | |
6568 | | - | |
| 6568 | + | |
6569 | 6569 | | |
6570 | 6570 | | |
6571 | 6571 | | |
| |||
6576 | 6576 | | |
6577 | 6577 | | |
6578 | 6578 | | |
6579 | | - | |
| 6579 | + | |
6580 | 6580 | | |
6581 | 6581 | | |
6582 | 6582 | | |
| |||
0 commit comments