Skip to content

Commit 6eee55a

Browse files
Martin KaFai LauAlexei Starovoitov
authored andcommitted
selftests/bpf: Remove bpf_tcp_helpers.h usages from other misc bpf tcp-cc tests
This patch removed the final few bpf_tcp_helpers.h usages in some misc bpf tcp-cc tests and replace it with bpf_tracing_net.h (i.e. vmlinux.h) Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org> Link: https://lore.kernel.org/r/20240509175026.3423614-9-martin.lau@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent 6ad4e6e commit 6eee55a

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

tools/testing/selftests/bpf/progs/bpf_dctcp_release.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright (c) 2021 Facebook */
33

4-
#include <stddef.h>
5-
#include <linux/bpf.h>
6-
#include <linux/types.h>
7-
#include <linux/stddef.h>
8-
#include <linux/tcp.h>
4+
#include "bpf_tracing_net.h"
95
#include <bpf/bpf_helpers.h>
106
#include <bpf/bpf_tracing.h>
11-
#include "bpf_tcp_helpers.h"
127

138
char _license[] SEC("license") = "GPL";
149
const char cubic[] = "cubic";

tools/testing/selftests/bpf/progs/bpf_tcp_nogpl.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22

3-
#include <linux/bpf.h>
4-
#include <linux/types.h>
5-
#include <bpf/bpf_helpers.h>
3+
#include "bpf_tracing_net.h"
64
#include <bpf/bpf_tracing.h>
7-
#include "bpf_tcp_helpers.h"
85

96
char _license[] SEC("license") = "X";
107

0 commit comments

Comments
 (0)