Skip to content

Commit

Permalink
bpf: Drop useless btf_vmlinux in bpf_tcp_ca
Browse files Browse the repository at this point in the history
The code using btf_vmlinux in bpf_tcp_ca is removed by the
commit 9f0265e ("bpf: Require only one of cong_avoid() and cong_control() from a TCP CC")
so drop this useless btf_vmlinux declaration.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Link: https://lore.kernel.org/r/4d38da4eadaba476bd92ffcd7a5a03a5e28745c0.1689582557.git.geliang.tang@suse.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
  • Loading branch information
Geliang Tang authored and Alexei Starovoitov committed Jul 19, 2023
1 parent 89dc403 commit 8daf847
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/ipv4/bpf_tcp_ca.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ static bool is_unsupported(u32 member_offset)
return false;
}

extern struct btf *btf_vmlinux;

static bool bpf_tcp_ca_is_valid_access(int off, int size,
enum bpf_access_type type,
const struct bpf_prog *prog,
Expand Down

0 comments on commit 8daf847

Please sign in to comment.