[dts] [PATCH V1 1/1] tests/l2fwd: wait l2fwd boot up ready

Mo, YufengX yufengx.mo at intel.com
Thu Sep 5 05:26:38 CEST 2019


Tested by Mo, YufengX <yufengx.mo at intel.com>

> -----Original Message-----
> From: Mo, YufengX
> Sent: Thursday, September 5, 2019 11:27 AM
> To: dts at dpdk.org; Tu, Lijuan <lijuan.tu at intel.com>; Chen, Zhaoyan <zhaoyan.chen at intel.com>
> Cc: Mo, YufengX <yufengx.mo at intel.com>
> Subject: [dts][PATCH V1 1/1] tests/l2fwd: wait l2fwd boot up ready
> 
> 
> wait 5 second after l2fwd boot up. It is aimed to make sure trex detect link up status.
> 
> Signed-off-by: yufengmx <yufengx.mo at intel.com>
> ---
>  tests/TestSuite_l2fwd.py | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_l2fwd.py b/tests/TestSuite_l2fwd.py
> index e2c4118..ace5dff 100644
> --- a/tests/TestSuite_l2fwd.py
> +++ b/tests/TestSuite_l2fwd.py
> @@ -196,7 +196,10 @@ class TestL2fwd(TestCase):
> 
>  #                self.dut.send_expect(command_line, "memory mapped", 60)
>                  self.dut.send_expect(command_line, "L2FWD: entering main loop", 60)
> -
> +                # wait 5 second after l2fwd boot up.
> +                # It is aimed to make sure trex detect link up status.
> +                if self.tester.is_pktgen:
> +                    time.sleep(5)
>                  info = "Executing l2fwd using %s queues, frame size %d and %s setup.\n" % \
>                         (queues['queues'], frame_size, self.core_config)
> 
> --
> 2.21.0



More information about the dts mailing list