diff options
author | Toke Høiland-Jørgensen <[email protected]> | 2019-09-16 14:33:42 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2019-09-19 14:22:18 +0200 |
commit | e0973a421c6e9d268db2157bcb8756e7ab4b4313 (patch) | |
tree | e27cd424784bb69db15a97bb4a9cbcb692563a1e /tools/perf/scripts/python/Perf-Trace-Util/Context.c | |
parent | 280ceaed79f18db930c0cc8bb21f6493490bf29c (diff) |
libbpf: Remove getsockopt() check for XDP_OPTIONS
The xsk_socket__create() function fails and returns an error if it cannot
get the XDP_OPTIONS through getsockopt(). However, support for XDP_OPTIONS
was not added until kernel 5.3, so this means that creating XSK sockets
always fails on older kernels.
Since the option is just used to set the zero-copy flag in the xsk struct,
and that flag is not really used for anything yet, just remove the
getsockopt() call until a proper use for it is introduced.
Suggested-by: Yonghong Song <[email protected]>
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/Context.c')
0 files changed, 0 insertions, 0 deletions