mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
cf5eafbfa5
commit
4c2d39bd40
@@ -55,7 +55,6 @@
|
||||
"bpf"
|
||||
],
|
||||
"setup": [
|
||||
"make -C bpf",
|
||||
[
|
||||
"$TC action flush action bpf",
|
||||
0,
|
||||
@@ -69,8 +68,7 @@
|
||||
"matchPattern": "action order [0-9]*: bpf action.o:\\[action-ok\\] id [0-9]* tag [0-9a-f]{16}( jited)? default-action pipe.*index 667 ref",
|
||||
"matchCount": "1",
|
||||
"teardown": [
|
||||
"$TC action flush action bpf",
|
||||
"make -C bpf clean"
|
||||
"$TC action flush action bpf"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -81,7 +79,6 @@
|
||||
"bpf"
|
||||
],
|
||||
"setup": [
|
||||
"make -C bpf",
|
||||
[
|
||||
"$TC action flush action bpf",
|
||||
0,
|
||||
@@ -100,8 +97,7 @@
|
||||
0,
|
||||
1,
|
||||
255
|
||||
],
|
||||
"make -C bpf clean"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user