diff options
author | Mike Holmes <mike.holmes@linaro.org> | 2016-10-12 14:10:10 -0400 |
---|---|---|
committer | Mike Holmes <mike.holmes@linaro.org> | 2016-10-12 14:10:14 -0400 |
commit | ffaea4205cac4f65af0c69381cb6bb07068f22e8 (patch) | |
tree | 81c1e54fc2f707660ffd3d568e4a6acf99960676 | |
parent | a8e5a8f6853ddc998430d112c22994928ddb4070 (diff) |
example: generator: actually use specified defaultHEADmastercoverty_scan
The help states default is 1000ms. 0 for flood mode, however the
default was incorrectly set to zero.
Fix odp_l2fwd to specify the timeout it requires to flood mode
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
-rw-r--r-- | example/generator/odp_generator.c | 1 | ||||
-rwxr-xr-x | test/common_plat/performance/odp_l2fwd_run.sh | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index b0053b97..48d7f5f0 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -946,6 +946,7 @@ static void parse_args(int argc, char *argv[], appl_args_t *appl_args) appl_args->number = -1; appl_args->payload = 56; appl_args->timeout = -1; + appl_args->interval = DEFAULT_PKT_INTERVAL; opterr = 0; /* do not issue errors on helper options */ diff --git a/test/common_plat/performance/odp_l2fwd_run.sh b/test/common_plat/performance/odp_l2fwd_run.sh index e64aa472..757cf535 100755 --- a/test/common_plat/performance/odp_l2fwd_run.sh +++ b/test/common_plat/performance/odp_l2fwd_run.sh @@ -32,6 +32,8 @@ TEST_SKIPPED=77 PLATFORM_VALIDATION=${TEST_SRC_DIR}/../../$ODP_PLATFORM/validation +FLOOD_MODE=0 + # Use installed pktio env or for make check take it from platform directory if [ -f "./pktio_env" ]; then . ./pktio_env @@ -66,7 +68,7 @@ run_l2fwd() #@todo: limit odp_generator to cores #https://bugs.linaro.org/show_bug.cgi?id=1398 - (odp_generator${EXEEXT} -I $IF0 \ + (odp_generator${EXEEXT} --interval $FLOOD_MODE -I $IF0 \ --srcip 192.168.0.1 --dstip 192.168.0.2 \ -m u 2>&1 > /dev/null) \ 2>&1 > /dev/null & |