diff options
Diffstat (limited to 'test/performance/odp_sched_pktio_run.sh')
-rwxr-xr-x | test/performance/odp_sched_pktio_run.sh | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/test/performance/odp_sched_pktio_run.sh b/test/performance/odp_sched_pktio_run.sh index dd332c191..828a83029 100755 --- a/test/performance/odp_sched_pktio_run.sh +++ b/test/performance/odp_sched_pktio_run.sh @@ -1,9 +1,7 @@ #!/bin/sh # -# Copyright (c) 2018, Linaro Limited -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (c) 2018 Linaro Limited # # directory where test binaries have been built @@ -11,7 +9,7 @@ TEST_DIR="${TEST_DIR:-$PWD}" # directory where test sources are, including scripts TEST_SRC_DIR=$(dirname $0) -PATH=$TEST_DIR:$TEST_DIR/../../example/generator:$PATH +PATH=$TEST_DIR:$PATH # exit codes expected by automake for skipped tests TEST_SKIPPED=77 @@ -19,8 +17,6 @@ TEST_SKIPPED=77 VALIDATION_TESTDIR=platform/$ODP_PLATFORM/test/validation PLATFORM_VALIDATION=${TEST_SRC_DIR}/../../$VALIDATION_TESTDIR -FLOOD_MODE=0 - # Use installed pktio env or for make check take it from platform directory if [ -f "./pktio_env" ]; then . ./pktio_env @@ -47,9 +43,9 @@ run_sched_pktio() exit $TEST_SKIPPED fi - type odp_generator > /dev/null + type odp_packet_gen > /dev/null if [ $? -ne 0 ]; then - echo "odp_generator not installed. Aborting." + echo "odp_packet_gen not installed. Aborting." cleanup_pktio_env exit 1 fi @@ -65,14 +61,14 @@ run_sched_pktio() sleep 1 - # Run generator with one worker - export ODP_PLATFORM_PARAMS="-m 256 --file-prefix="gen" \ + # Run odp_packet_gen with one tx thread + export ODP_PLATFORM_PARAMS="-m 512 --file-prefix="gen" \ --proc-type auto --no-pci \ --vdev net_pcap0,iface=$IF0" - (odp_generator${EXEEXT} --interval $FLOOD_MODE -I 0 \ - --srcip 192.168.0.1 --dstip 192.168.0.2 \ - -m u -w 1 2>&1 > /dev/null) \ + (odp_packet_gen${EXEEXT} --gap 0 -i 0 \ + --ipv4_src 192.168.0.1 --ipv4_dst 192.168.0.2 \ + -r 0 -t 1 2>&1 > /dev/null) \ 2>&1 > /dev/null & GEN_PID=$! |