]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
libbpf: Add selftests for TC-BPF management API
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Wed, 12 May 2021 10:34:51 +0000 (16:04 +0530)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 17 May 2021 15:52:20 +0000 (17:52 +0200)
commitf18ba26da88a89db9b50cb4ff47fadb159f2810b
treeaac2019ec3a59f3580ecc8c02020006e990749a6
parent715c5ce454a6a9b94a1a4a3360de6a87eaf0d833
libbpf: Add selftests for TC-BPF management API

This adds some basic tests for the low level bpf_tc_* API.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20210512103451.989420-4-memxor@gmail.com
tools/testing/selftests/bpf/prog_tests/tc_bpf.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_tc_bpf.c [new file with mode: 0644]