bpf: selftests: Add non function pointer test to struct_ops
authorMartin KaFai Lau <kafai@fb.com>
Fri, 12 Feb 2021 02:10:37 +0000 (18:10 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 12 Feb 2021 19:49:36 +0000 (11:49 -0800)
commita79e88dd2ca6686dca77c9c53c3e12c031347348
tree32f291db1cc000e7191a5dd9e8d4d323f3a5336d
parentd2836dddc95d5dd82c7cb23726c97d8c9147f050
bpf: selftests: Add non function pointer test to struct_ops

This patch adds a "void *owner" member.  The existing
bpf_tcp_ca test will ensure the bpf_cubic.o and bpf_dctcp.o
can be loaded.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210212021037.267278-1-kafai@fb.com
tools/testing/selftests/bpf/bpf_tcp_helpers.h