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)
commitc03079c9d93d593d44524883b6b6127b21978e22
tree53ef6c297dac4a0bbcf88a5a0ecbcd0759aee751
parentfe5886852601fb2593cbc5a7549ef9fd2ef481ba
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: b4b8faa1ded7 ("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