aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools
diff options
context:
space:
mode:
authorMartin KaFai Lau <kafai@fb.com>2021-02-11 18:10:37 -0800
committerAndrii Nakryiko <andrii@kernel.org>2021-02-12 11:49:36 -0800
commita79e88dd2ca6686dca77c9c53c3e12c031347348 (patch)
tree32f291db1cc000e7191a5dd9e8d4d323f3a5336d /tools
parentlibbpf: Ignore non function pointer member in struct_ops (diff)
downloadwireguard-linux-a79e88dd2ca6686dca77c9c53c3e12c031347348.tar.xz
wireguard-linux-a79e88dd2ca6686dca77c9c53c3e12c031347348.zip
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
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/bpf/bpf_tcp_helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/bpf_tcp_helpers.h b/tools/testing/selftests/bpf/bpf_tcp_helpers.h
index 6a9053162cf2..91f0fac632f4 100644
--- a/tools/testing/selftests/bpf/bpf_tcp_helpers.h
+++ b/tools/testing/selftests/bpf/bpf_tcp_helpers.h
@@ -177,6 +177,7 @@ struct tcp_congestion_ops {
* after all the ca_state processing. (optional)
*/
void (*cong_control)(struct sock *sk, const struct rate_sample *rs);
+ void *owner;
};
#define min(a, b) ((a) < (b) ? (a) : (b))