Re: [PATCH bpf v2] xsk: fix crash in poll when device does not support ndo_xsk_wakeup

2019-10-03 Thread Daniel Borkmann
On Wed, Oct 02, 2019 at 08:31:59AM +0200, Magnus Karlsson wrote: > Fixes a crash in poll() when an AF_XDP socket is opened in copy mode > and the bound device does not have ndo_xsk_wakeup defined. Avoid > trying to call the non-existing ndo and instead call the internal xsk > sendmsg function to se

[PATCH bpf v2] xsk: fix crash in poll when device does not support ndo_xsk_wakeup

2019-10-01 Thread Magnus Karlsson
Fixes a crash in poll() when an AF_XDP socket is opened in copy mode and the bound device does not have ndo_xsk_wakeup defined. Avoid trying to call the non-existing ndo and instead call the internal xsk sendmsg function to send packets in the same way (from the application's point of view) as call