diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-08-14 20:37:48 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-08-18 00:18:54 +0300 |
commit | b0e4701ce15d0381cdea0643c7f0a35dc529cec2 (patch) | |
tree | 35f71eca49d4baa3ce31be4c830db41f60f2cb32 /include/net/bpf_sk_storage.h | |
parent | fae55527ac1164b66bee983a4d82ade2bfedb332 (diff) | |
download | linux-b0e4701ce15d0381cdea0643c7f0a35dc529cec2.tar.xz |
bpf: export bpf_map_inc_not_zero
Rename existing bpf_map_inc_not_zero to __bpf_map_inc_not_zero to
indicate that it's caller's responsibility to do proper locking.
Create and export bpf_map_inc_not_zero wrapper that properly
locks map_idr_lock. Will be used in the next commit to
hold a map while cloning a socket.
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Yonghong Song <yhs@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/net/bpf_sk_storage.h')
0 files changed, 0 insertions, 0 deletions