On Wed, Jun 27, 2018 at 7:02 AM, Magnus Karlsson <[email protected]> wrote: > 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 <[email protected]> > Reported-by: Pavel Odintsov <[email protected]>
Acked-by: Song Liu <[email protected]> > --- > samples/bpf/xdpsock_user.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/samples/bpf/xdpsock_user.c b/samples/bpf/xdpsock_user.c > index d69c8d78d3fd..aec3a61fac44 100644 > --- a/samples/bpf/xdpsock_user.c > +++ b/samples/bpf/xdpsock_user.c > @@ -729,7 +729,7 @@ static void kick_tx(int fd) > int ret; > > ret = sendto(fd, NULL, 0, MSG_DONTWAIT, NULL, 0); > - if (ret >= 0 || errno == ENOBUFS || errno == EAGAIN) > + if (ret >= 0 || errno == EAGAIN || errno == EBUSY) > return; > lassert(0); > } > -- > 2.7.4 >
