bpf: sockmap, on update propagate errors back to userspace
authorJohn Fastabend <john.fastabend@gmail.com>
Wed, 16 May 2018 23:38:14 +0000 (16:38 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 16 May 2018 23:48:22 +0000 (01:48 +0200)
commite23afe5e7cba89cd0744c5218eda1b3553455c17
tree5ea1134af3e5279de76b6f46a631311c4dffd17c
parent683d2ac3904c74a625ea62d7fcc6c1efd84be087
bpf: sockmap, on update propagate errors back to userspace

When an error happens in the update sockmap element logic also pass
the err up to the user.

Fixes: e5cd3abcb31a ("bpf: sockmap, refactor sockmap routines to work with hashmap")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/sockmap.c