diff options
| author | Weqaar Janjua <[email protected]> | 2020-12-07 21:53:29 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-12-09 16:44:44 +0100 |
| commit | a89052572ebbf4bcee7c39390640e92b60eaa653 (patch) | |
| tree | 4e326920722773b04dddc55c68edb0bd79dcdaea /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
| parent | b60da4955f53d1f50e44351a9c3a37a92503079e (diff) | |
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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Tested-by: Yonghong Song <[email protected]>
Acked-by: Björn Töpel <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions