Skip to content
Commit fe588685 authored by Magnus Karlsson's avatar Magnus Karlsson Committed by Alexei Starovoitov
Browse files

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: 35fcde7f ("xsk: support for Tx")
Signed-off-by: default avatarMagnus Karlsson <magnus.karlsson@intel.com>
Reported-by: default avatarPavel Odintsov <pavel@fastnetmon.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 20b52a75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment