linux/net/xdp
Jakub Kicinski 2d55d614fc net: xsk: don't return frames via the allocator on error
xdp_return_buff() is used when frame has been successfully
handled (transmitted) or if an error occurred during delayed
processing and there is no way to report it back to
xdp_do_redirect().

In case of __xsk_rcv_zc() error is propagated all the way
back to the driver, so there is no need to call
xdp_return_buff().  Driver will recycle the frame anyway
after seeing that error happened.

Fixes: 173d3adb6f ("xsk: add zero-copy support for Rx")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-07-31 02:03:19 +02:00
..
Kconfig
Makefile xsk: remove newline at end of file 2018-05-18 16:07:02 +02:00
xdp_umem_props.h xsk: new descriptor addressing scheme 2018-06-04 17:21:02 +02:00
xdp_umem.c xsk: silence warning on memory allocation failure 2018-06-11 23:49:07 +02:00
xdp_umem.h xsk: wire upp Tx zero-copy functions 2018-06-05 15:48:34 +02:00
xsk_queue.c xsk: new descriptor addressing scheme 2018-06-04 17:21:02 +02:00
xsk_queue.h xsk: fix poll/POLLIN premature returns 2018-07-26 02:53:10 +02:00
xsk.c net: xsk: don't return frames via the allocator on error 2018-07-31 02:03:19 +02:00