linux/net/xdp
Magnus Karlsson fe58868526 xsk: frame could be completed more than once in SKB path
Fixed a bug in which a frame could be completed more than once
when an error was returned from dev_direct_xmit(). The code
erroneously retried sending the message leading to multiple
calls to the SKB destructor and therefore multiple completions
of the same buffer to user space.

The error code in this case has been changed from EAGAIN to EBUSY
in order to tell user space that the sending of the packet failed
and the buffer has been return to user space through the completion
queue.

Fixes: 35fcde7f8d ("xsk: support for Tx")
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Reported-by: Pavel Odintsov <pavel@fastnetmon.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-07-02 18:37:11 -07:00
..
Kconfig
Makefile
xdp_umem_props.h
xdp_umem.c xsk: silence warning on memory allocation failure 2018-06-11 23:49:07 +02:00
xdp_umem.h
xsk_queue.c
xsk_queue.h xsk: fix potential lost completion message in SKB path 2018-07-02 18:37:11 -07:00
xsk.c xsk: frame could be completed more than once in SKB path 2018-07-02 18:37:11 -07:00