bpf: Implement bpf iterator for sock local storage map
authorYonghong Song <yhs@fb.com>
Thu, 23 Jul 2020 18:41:16 +0000 (11:41 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 26 Jul 2020 03:16:33 +0000 (20:16 -0700)
commit5ce6e77c7edf7310a0ff9532fd6b9693c082ab32
treee0d5c4833533f12fbcb9fc0cffe5072df75991f7
parentd3cc2ab546adc6e52b65f36f7c34820d2830d0c9
bpf: Implement bpf iterator for sock local storage map

The bpf iterator for bpf sock local storage map
is implemented. User space interacts with sock
local storage map with fd as a key and storage value.
In kernel, passing fd to the bpf program does not
really make sense. In this case, the sock itself is
passed to bpf program.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200723184116.590602-1-yhs@fb.com
net/core/bpf_sk_storage.c