diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2020-09-30 18:18:19 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-09-30 21:50:35 +0300 |
commit | faef26fa444dc44eeff70c9a63ebe7fef00b6c37 (patch) | |
tree | 842d71671220a2634e8cfbe51b07565cc0820347 /tools/testing/selftests/bpf/progs/tailcall_bpf2bpf1.c | |
parent | 0e9f6841f664f801a69d27f765dc70b8a93e1959 (diff) | |
download | linux-faef26fa444dc44eeff70c9a63ebe7fef00b6c37.tar.xz |
bpf, selftests: Use bpf_tail_call_static where appropriate
For those locations where we use an immediate tail call map index use the
newly added bpf_tail_call_static() helper.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/3cfb2b799a62d22c6e7ae5897c23940bdcc24cbc.1601477936.git.daniel@iogearbox.net
Diffstat (limited to 'tools/testing/selftests/bpf/progs/tailcall_bpf2bpf1.c')
-rw-r--r-- | tools/testing/selftests/bpf/progs/tailcall_bpf2bpf1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/progs/tailcall_bpf2bpf1.c b/tools/testing/selftests/bpf/progs/tailcall_bpf2bpf1.c index b5d9c8e778ae..0103f3dd9f02 100644 --- a/tools/testing/selftests/bpf/progs/tailcall_bpf2bpf1.c +++ b/tools/testing/selftests/bpf/progs/tailcall_bpf2bpf1.c @@ -21,7 +21,7 @@ TAIL_FUNC(1) static __noinline int subprog_tail(struct __sk_buff *skb) { - bpf_tail_call(skb, &jmp_table, 0); + bpf_tail_call_static(skb, &jmp_table, 0); return skb->len * 2; } @@ -29,7 +29,7 @@ int subprog_tail(struct __sk_buff *skb) SEC("classifier") int entry(struct __sk_buff *skb) { - bpf_tail_call(skb, &jmp_table, 1); + bpf_tail_call_static(skb, &jmp_table, 1); return subprog_tail(skb); } |