summaryrefslogtreecommitdiff
path: root/bpfc
diff options
context:
space:
mode:
Diffstat (limited to 'bpfc')
0 files changed, 0 insertions, 0 deletions
ext.git/diff/?h=nds-private-remove&id=daa5fc711ee0fdbec8d55734d3975c17f2070b97&id2=e40d5d78df539c0c9b6625cdf5b1bc4b14c4d8bf'>diff)parentbc6a3d9977b6ea093cd7c567ef83657023e77f26 (diff)
Merge branch 'bpf-selftests-improve-and-use-library'
Mickaël Salaün says: ==================== Improve BPF selftests and use the library (net-next tree) This series brings some fixes to selftests, add the ability to test unprivileged BPF programs as root and replace bpf_sys.h with calls to the BPF library. This is intended for the net-next tree and apply on c0e4dadb3494 ("net: dsa: mv88e6xxx: Move forward declaration to where it is needed"). Changes since v4: * align text for function calls as requested by Daniel Borkmann (bpf_load_program and bpf_map_update_elem) * rebase Changes since v3: * keep the bzero() calls Changes since v2: * use the patches from two previous series (unprivileged tests and bpf_sys.h replacement) * include one more stdint.h * rebase on net-next * add this cover letter Changes since v1: * exclude patches not intended for the net-next tree ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat
-rw-r--r--tools/include/uapi/linux/bpf.h23
-rw-r--r--tools/lib/bpf/bpf.c20
-rw-r--r--tools/lib/bpf/bpf.h12
-rw-r--r--tools/testing/selftests/bpf/.gitignore1
-rw-r--r--tools/testing/selftests/bpf/Makefile4
-rw-r--r--tools/testing/selftests/bpf/bpf_sys.h108
-rw-r--r--tools/testing/selftests/bpf/test_lpm_map.c38
-rw-r--r--tools/testing/selftests/bpf/test_lru_map.c138
-rw-r--r--tools/testing/selftests/bpf/test_maps.c162
-rw-r--r--tools/testing/selftests/bpf/test_tag.c11
-rw-r--r--tools/testing/selftests/bpf/test_verifier.c84
11 files changed, 301 insertions, 300 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h