aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>2022-06-29 16:34:55 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2022-06-30 22:48:57 +0200
commit24d2e5d9da608445e2e5c2c9ab5cf418f0fc4612 (patch)
tree9508b2cf95d1c6147e323f095375e3b78dbd88c8 /tools/testing/selftests/bpf/prog_tests
parentbpftool: Use feature list in bash completion (diff)
downloadlinux-dev-24d2e5d9da608445e2e5c2c9ab5cf418f0fc4612.tar.xz
linux-dev-24d2e5d9da608445e2e5c2c9ab5cf418f0fc4612.zip
selftests/xsk: Avoid bpf_link probe for existing xsk
Currently bpf_link probe is done for each call of xsk_socket__create(). For cases where xsk context was previously created and current socket creation uses it, has_bpf_link will be overwritten, where it has already been initialized. Optimize this by moving the query to the xsk_create_ctx() so that when xsk_get_ctx() finds a ctx then no further bpf_link probes are needed. Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Magnus Karlsson <magnus.karlsson@intel.com> Link: https://lore.kernel.org/bpf/20220629143458.934337-2-maciej.fijalkowski@intel.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions