diff options
author | Ludovic L'Hours <ludovic.lhours@gmail.com> | 2023-01-08 19:20:18 +0100 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2023-01-10 17:52:22 -0800 |
commit | 6920b08661e3ad829206078b5c9879b24aea8dfc (patch) | |
tree | 189a9d54bca0e8e9ca3adfcfbdfa2110c1b9198c /lib/mpi/mpi-inv.c | |
parent | 75514e4c661962cbbad869a1b5855dbce0f1aba2 (diff) |
libbpf: Fix map creation flags sanitization
As BPF_F_MMAPABLE flag is now conditionnaly set (by map_is_mmapable),
it should not be toggled but disabled if not supported by kernel.
Fixes: 4fcac46c7e10 ("libbpf: only add BPF_F_MMAPABLE flag for data maps with global vars")
Signed-off-by: Ludovic L'Hours <ludovic.lhours@gmail.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20230108182018.24433-1-ludovic.lhours@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-inv.c')
0 files changed, 0 insertions, 0 deletions