summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2018-06-29 10:48:18 +0300
committerAlexei Starovoitov <ast@kernel.org>2018-07-03 04:37:11 +0300
commitfe5886852601fb2593cbc5a7549ef9fd2ef481ba (patch)
tree9a70b5726fb7b432289dd130d5d871d0a61de56b /samples
parent20b52a75166086a40d838397ef3db28a4f2c5998 (diff)
downloadlinux-fe5886852601fb2593cbc5a7549ef9fd2ef481ba.tar.xz
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: 35fcde7f8deb ("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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions