diff options
author | Philo Lu <[email protected]> | 2024-04-05 10:55:35 +0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-04-05 10:31:17 -0700 |
commit | 9d482da9e17a4ddd5563428f74302a36b2610306 (patch) | |
tree | daa373372a1c4edf856de49c047898273a7141f5 /tools | |
parent | 0a525621b7e5b49202b19d8f75382c6778fdd0c1 (diff) |
bpf: allow invoking bpf_for_each_map_elem with different maps
Taking different maps within a single bpf_for_each_map_elem call is not
allowed before, because from the second map,
bpf_insn_aux_data->map_ptr_state will be marked as *poison*. In fact
both map_ptr and state are needed to support this use case: map_ptr is
used by set_map_elem_callback_state() while poison state is needed to
determine whether to use direct call.
Signed-off-by: Philo Lu <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions