]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: deal with EBUSY return code from sendmsg in xdpsock sample
authorMagnus Karlsson <magnus.karlsson@intel.com>
Fri, 29 Jun 2018 07:48:19 +0000 (09:48 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 3 Jul 2018 01:37:12 +0000 (18:37 -0700)
commitd559e457fb90743b2d2fbdbb38814c9c76057743
tree53ef6c297dac4a0bbcf88a5a0ecbcd0759aee751
parente207c1a95717416206038d1609faf6d5850b0597
samples/bpf: deal with EBUSY return code from sendmsg in xdpsock sample

Sendmsg in the SKB path of AF_XDP can now return EBUSY when a packet
was discarded and completed by the driver. Just ignore this message
in the sample application.

Fixes: 2ce5fbee7848 ("samples/bpf: sample application and documentation for AF_XDP sockets")
Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Reported-by: Pavel Odintsov <pavel@fastnetmon.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/xdpsock_user.c