diff options
author | Magnus Karlsson <[email protected]> | 2019-10-02 08:31:59 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2019-10-03 16:34:27 +0200 |
commit | df551058f7a303bd3a17a4cef001349974962ce8 (patch) | |
tree | 360e624c558bbb4f5a8c419c410d6aff8e61c557 /tools/perf/scripts/python/bin/export-to-sqlite-report | |
parent | e55190f26f92927e95aba22b069679311d5379ea (diff) |
xsk: Fix crash in poll when device does not support ndo_xsk_wakeup
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 calling sendmsg() in any mode or
poll() in zero-copy mode would have done. The application should
behave in the same way independent on if zero-copy mode or copy mode
is used.
Fixes: 77cd0d7b3f25 ("xsk: add support for need_wakeup flag in AF_XDP rings")
Reported-by: [email protected]
Signed-off-by: Magnus Karlsson <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-report')
0 files changed, 0 insertions, 0 deletions