aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorLorenz Bauer <[email protected]>2020-08-21 10:29:48 +0000
committerAlexei Starovoitov <[email protected]>2020-08-21 22:16:12 +0000
commitbb23c0e1c57f3b40c8d2713401c1b42df911d424 (patch)
tree50361f2ed977f724fc78f240c2a01df9f130f87f /tools/lib/bpf/bpf_helpers.h
parentbpf: sockmap: Allow update from BPF (diff)
downloadkernel-bb23c0e1c57f3b40c8d2713401c1b42df911d424.tar.gz
kernel-bb23c0e1c57f3b40c8d2713401c1b42df911d424.zip
selftests: bpf: Test sockmap update from BPF
Add a test which copies a socket from a sockmap into another sockmap or sockhash. This excercises bpf_map_update_elem support from BPF context. Compare the socket cookies from source and destination to ensure that the copy succeeded. Also check that the verifier rejects map_update from unsafe contexts. Signed-off-by: Lorenz Bauer <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions