diff options
author | Maciej Fijalkowski <maciej.fijalkowski@intel.com> | 2022-04-13 17:30:06 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-04-15 21:10:37 +0200 |
commit | 50ae066480738e0d3ce72a90c8c0f4d9de6092e0 (patch) | |
tree | 645af467aa5753b1356423d06e3f20f707a86481 /net/compat.c | |
parent | d090c885860f6ef85aa080bdfc94e69c525490a2 (diff) | |
download | linux-50ae066480738e0d3ce72a90c8c0f4d9de6092e0.tar.bz2 |
ice, xsk: Terminate Rx side of NAPI when XSK Rx queue gets full
When XSK pool uses need_wakeup feature, correlate -ENOBUFS that was
returned from xdp_do_redirect() with a XSK Rx queue being full. In such
case, terminate the Rx processing that is being done on the current HW
Rx ring and let the user space consume descriptors from XSK Rx queue so
that there is room that driver can use later on.
Introduce new internal return code ICE_XDP_EXIT that will indicate case
described above.
Note that it does not affect Tx processing that is bound to the same
NAPI context, nor the other Rx rings.
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-6-maciej.fijalkowski@intel.com
Diffstat (limited to 'net/compat.c')
0 files changed, 0 insertions, 0 deletions