diff options
author | 2020-12-01 21:56:57 +0800 | |
---|---|---|
committer | 2020-12-03 01:14:14 +0100 | |
commit | f5da54187e33dce9bea63170667dbb0ca8d98194 (patch) | |
tree | 89213db4773977f0fb2e9d2575f4ef8428a4e499 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/bpf: Drain ringbuf samples at the end of test (diff) | |
download | linux-dev-f5da54187e33dce9bea63170667dbb0ca8d98194.tar.xz linux-dev-f5da54187e33dce9bea63170667dbb0ca8d98194.zip |
xsk: Replace datagram_poll by sock_poll_wait
datagram_poll will judge the current socket status (EPOLLIN, EPOLLOUT)
based on the traditional socket information (eg: sk_wmem_alloc), but
this does not apply to xsk. So this patch uses sock_poll_wait instead of
datagram_poll, and the mask is calculated by xsk_poll.
Fixes: c497176cb2e4 ("xsk: add Rx receive functions and poll support")
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/e82f4697438cd63edbf271ebe1918db8261b7c09.1606555939.git.xuanzhuo@linux.alibaba.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions