bpf: selftest: Remove enum tcp_ca_state from bpf_tcp_helpers.h
The enum tcp_ca_state is available in <linux/tcp.h>. Remove it from the bpf_tcp_helpers.h to avoid conflict when the bpf prog needs to include both both <linux/tcp.h> and bpf_tcp_helpers.h. Modify the bpf_cubic.c and bpf_dctcp.c to use <linux/tcp.h> instead. The <linux/stddef.h> is needed by <linux/tcp.h>. Signed-off-by:Martin KaFai Lau <kafai@fb.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200925000452.3859313-1-kafai@fb.com
parent
edc2d66a
No related branches found
No related tags found
Showing
- tools/testing/selftests/bpf/bpf_tcp_helpers.h 0 additions, 8 deletionstools/testing/selftests/bpf/bpf_tcp_helpers.h
- tools/testing/selftests/bpf/progs/bpf_cubic.c 2 additions, 0 deletionstools/testing/selftests/bpf/progs/bpf_cubic.c
- tools/testing/selftests/bpf/progs/bpf_dctcp.c 2 additions, 0 deletionstools/testing/selftests/bpf/progs/bpf_dctcp.c
Please register or sign in to comment