[dts] [PATCH 1/2] tests/vf_packet_rxtx: fix test case failures in vf_reset

Liu, Yong yong.liu at intel.com
Thu Mar 8 04:36:36 CET 2018


Hi Joyce,
Could you please figure out why need to clean the counter before tester transmission? It should be no packet sent to VF before that moment. 

Thanks,
Marvin

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Joyce Kong
> Sent: Tuesday, March 06, 2018 3:47 PM
> To: dts at dpdk.org
> Cc: Joyce Kong <joyce.kong at arm.com>
> Subject: [dts] [PATCH 1/2] tests/vf_packet_rxtx: fix test case failures in
> vf_reset
> 
> Clear port stats before counting port info
> 
> Signed-off-by: Joyce Kong <joyce.kong at arm.com>
> ---
>  tests/TestSuite_vf_packet_rxtx.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/TestSuite_vf_packet_rxtx.py
> b/tests/TestSuite_vf_packet_rxtx.py
> index 63f4820..6a29d23 100644
> --- a/tests/TestSuite_vf_packet_rxtx.py
> +++ b/tests/TestSuite_vf_packet_rxtx.py
> @@ -279,6 +279,7 @@ class TestVfPacketRxtx(TestCase):
>          rx_port = tx_port
> 
>          dst_mac = pmd0_vf0_mac
> +        self.vm0_testpmd.execute_cmd('clear port stats all')
>          self.tester.sendpkt_bg(tx_port, dst_mac)
> 
>          #vf port stop/start can trigger reset action
> --
> 1.8.3.1



More information about the dts mailing list