selftests/bpf: Xsk selftests framework
This patch adds AF_XDP selftests framework under selftests/bpf. Topology: --------- ----------- ----------- | xskX | --------- | xskY | ----------- | ----------- | | | ----------- | ---------- | vethX | --------- | vethY | ----------- peer ---------- | | | namespaceX | namespaceY Prerequisites setup by script test_xsk.sh: Set up veth interfaces as per the topology shown ^^: * setup two veth interfaces and one namespace ** veth<xxxx> in root namespace ** veth<yyyy> in af_xdp<xxxx> namespace ** namespace af_xdp<xxxx> * create a spec file veth.spec that includes this run-time configuration *** xxxx and yyyy are randomly generated 4 digit numbers used to avoid conflict with any existing interface * tests the veth and xsk layers of the topology Signed-off-by:Weqaar Janjua <weqaar.a.janjua@intel.com> Signed-off-by:
Daniel Borkmann <daniel@iogearbox.net> Tested-by:
Yonghong Song <yhs@fb.com> Acked-by:
Björn Töpel <bjorn.topel@intel.com> Link: https://lore.kernel.org/bpf/20201207215333.11586-2-weqaar.a.janjua@intel.com
Showing
- tools/testing/selftests/bpf/Makefile 3 additions, 1 deletiontools/testing/selftests/bpf/Makefile
- tools/testing/selftests/bpf/test_xsk.sh 152 additions, 0 deletionstools/testing/selftests/bpf/test_xsk.sh
- tools/testing/selftests/bpf/xsk_prereqs.sh 119 additions, 0 deletionstools/testing/selftests/bpf/xsk_prereqs.sh
tools/testing/selftests/bpf/test_xsk.sh
0 → 100755
tools/testing/selftests/bpf/xsk_prereqs.sh
0 → 100755
Please register or sign in to comment