projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89dc403
)
bpf: Drop useless btf_vmlinux in bpf_tcp_ca
author
Geliang Tang
<geliang.tang@suse.com>
Mon, 17 Jul 2023 08:32:52 +0000
(16:32 +0800)
committer
Alexei Starovoitov
<ast@kernel.org>
Wed, 19 Jul 2023 00:31:10 +0000
(17:31 -0700)
The code using btf_vmlinux in bpf_tcp_ca is removed by the
commit
9f0265e921de
("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>
net/ipv4/bpf_tcp_ca.c
patch
|
blob
|
history
diff --git
a/net/ipv4/bpf_tcp_ca.c
b/net/ipv4/bpf_tcp_ca.c
index 4406d796cc2f103a583a7bffc7003434c4be2eeb..39dcccf0f174b95f2ec4cd7bed3cc86a73dede3b 100644
(file)
--- a/
net/ipv4/bpf_tcp_ca.c
+++ b/
net/ipv4/bpf_tcp_ca.c
@@
-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,