commit | 3b4a63f674e94795c9b76a41b36364b8aec232e1 | [log] [tgz] |
---|---|---|
author | Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp> | Tue Oct 09 10:04:50 2018 +0900 |
committer | Alexei Starovoitov <ast@kernel.org> | Tue Oct 09 21:52:20 2018 -0700 |
tree | e5dae37fa352f22915e661a36af033b646bcdede | |
parent | 509db2833e0ddac7faf6e7d2dd6e7f85c98fbee0 [diff] |
bpf: return EOPNOTSUPP when map lookup isn't supported Return ERR_PTR(-EOPNOTSUPP) from map_lookup_elem() methods of below map types: - BPF_MAP_TYPE_PROG_ARRAY - BPF_MAP_TYPE_STACK_TRACE - BPF_MAP_TYPE_XSKMAP - BPF_MAP_TYPE_SOCKMAP/BPF_MAP_TYPE_SOCKHASH Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>