diff options
author | Maciej Fijalkowski <maciej.fijalkowski@intel.com> | 2020-09-16 23:10:06 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-09-17 12:59:31 -0700 |
commit | cf71b174d3464c7dc22f86f25d629a8d9d5c3519 (patch) | |
tree | ed39dc09cc524f23513f52f751fd7ce8d62f7b35 /kernel/bpf/core.c | |
parent | a748c6975dea325da540610c2ba9b5f332c603e6 (diff) |
bpf: rename poke descriptor's 'ip' member to 'tailcall_target'
Reflect the actual purpose of poke->ip and rename it to
poke->tailcall_target so that it will not the be confused with another
poke target that will be introduced in next commit.
While at it, do the same thing with poke->ip_stable - rename it to
poke->tailcall_target_stable.
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/core.c')
-rw-r--r-- | kernel/bpf/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 2a20c2833996..2e00ac028d38 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -775,7 +775,8 @@ int bpf_jit_add_poke_descriptor(struct bpf_prog *prog, if (size > poke_tab_max) return -ENOSPC; - if (poke->ip || poke->ip_stable || poke->adj_off) + if (poke->tailcall_target || poke->tailcall_target_stable || + poke->adj_off) return -EINVAL; switch (poke->reason) { |