OSDN Git Service

tc-testing: use a plugin to build eBPF program
authorDavide Caratti <dcaratti@redhat.com>
Thu, 4 Oct 2018 16:34:39 +0000 (18:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Oct 2018 21:44:56 +0000 (14:44 -0700)
commit4c2d39bd40c1f34975bec070a8e43fa573a9c327
tree766db935876b24122b6f16edb824a380e578dbff
parentcf5eafbfa586d030f9321cee516b91d089e38280
tc-testing: use a plugin to build eBPF program

use a TDC plugin, instead of building eBPF programs in the 'setup' stage.
'-B' argument can be used to build eBPF programs in $EBPFDIR directory,
in the 'pre-suite' stage. Binaries are then cleaned in 'post-suite' stage.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/README
tools/testing/selftests/tc-testing/plugin-lib/buildebpfPlugin.py [new file with mode: 0644]
tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json