selftests: tc-testing: use parallel tdc in kselftests
authorPedro Tammela <pctammela@mojatatu.com>
Tue, 14 Nov 2023 16:04:42 +0000 (13:04 -0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Nov 2023 22:30:10 +0000 (22:30 +0000)
Leverage parallel tests in kselftests using all the available cpus.
We tested this in tuxsuite and locally extensively and it seems it's ready for prime time.

Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tdc.sh

index ae08b7a..4dbe50b 100755 (executable)
@@ -64,5 +64,5 @@ try_modprobe sch_hfsc
 try_modprobe sch_hhf
 try_modprobe sch_htb
 try_modprobe sch_teql
-./tdc.py -c actions --nobuildebpf
-./tdc.py -c qdisc
+./tdc.py -J`nproc` -c actions --nobuildebpf
+./tdc.py -J`nproc` -c qdisc