]> git.droids-corp.org - dpdk.git/commitdiff
devtools: disable automatic probing in null testing
authorThomas Monjalon <thomas@monjalon.net>
Fri, 22 Nov 2019 13:38:28 +0000 (14:38 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 24 Nov 2019 22:52:02 +0000 (23:52 +0100)
The script test-null.sh is supposed to do a quick and simple
run of testpmd with null PMD only, for sanity check.
As it is not supposed to test probing of any other PMD,
physical device probing is switched to whitelist mode
by using a fake PCI address (0:0.0).
It will also help to keep memory usage stable across platforms.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: David Marchand <david.marchand@redhat.com>
devtools/test-null.sh

index 9f9a459f7609e1422bfa30baeda1d32aa9c17b4a..d82c6ad193a4bd97b343001c3f425f34d674bc98 100755 (executable)
@@ -26,5 +26,5 @@ fi
 
 (sleep 1 && echo stop) |
 $testpmd -c $coremask --no-huge -m 150 \
-       $libs --vdev net_null1 --vdev net_null2 $eal_options -- \
+       $libs -w 0:0.0 --vdev net_null1 --vdev net_null2 $eal_options -- \
        --no-mlockall --total-num-mbufs=2048 $testpmd_options -ia