aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf/stackmap.c
diff options
context:
space:
mode:
authorPrashant Bhole <[email protected]>2018-10-09 10:04:49 +0900
committerAlexei Starovoitov <[email protected]>2018-10-09 21:52:20 -0700
commit509db2833e0ddac7faf6e7d2dd6e7f85c98fbee0 (patch)
tree3f3c6e718a575fc14d2292a0d08733c0307e3ad2 /kernel/bpf/stackmap.c
parent8af03d1ae2e154a8be3631e8694b87007e1bdbc2 (diff)
bpf: error handling when map_lookup_elem isn't supported
The error value returned by map_lookup_elem doesn't differentiate whether lookup was failed because of invalid key or lookup is not supported. Lets add handling for -EOPNOTSUPP return value of map_lookup_elem() method of map, with expectation from map's implementation that it should return -EOPNOTSUPP if lookup is not supported. The errno for bpf syscall for BPF_MAP_LOOKUP_ELEM command will be set to EOPNOTSUPP if map lookup is not supported. Signed-off-by: Prashant Bhole <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Acked-by: Song Liu <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'kernel/bpf/stackmap.c')
0 files changed, 0 insertions, 0 deletions