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.hol...@linaro.org>
---
 example/generator/odp_generator.c             | 1 +
 test/common_plat/performance/odp_l2fwd_run.sh | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/example/generator/odp_generator.c 
b/example/generator/odp_generator.c
index b0053b9..48d7f5f 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 e64aa47..757cf53 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 &
-- 
2.7.4

Reply via email to