[dts] [DTS][PATCH] fix result verify issue for crc in dpdk update

Liu, Yong yong.liu at intel.com
Thu Nov 19 08:18:00 CET 2015


Hi Jingguo,
This fix may not work on other NICs, you can reference to function send_packet in shutdown_api suite.
The function also handled crc and vlan packet length in testpmd.

> -----Original Message-----
> From: Fu, JingguoX
> Sent: Thursday, November 19, 2015 2:52 PM
> To: dts at dpdk.org
> Cc: Liu, Yong; Xu, HuilongX; Fu, JingguoX
> Subject: [DTS][PATCH] fix result verify issue for crc in dpdk update
> 
> Signed-off-by: Jingguo Fu <jingguox.fu at intel.com>
> ---
>  tests/TestSuite_pmd.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_pmd.py b/tests/TestSuite_pmd.py
> index 29dec2b..740504f 100644
> --- a/tests/TestSuite_pmd.py
> +++ b/tests/TestSuite_pmd.py
> @@ -407,13 +407,13 @@ class TestPmd(TestCase,IxiaPacketGenerator):
>              	self.verify(p1rx_bytes == frame_size,
>                          	"packet pass assert error, expected %d RX
> bytes, actual %d" % (frame_size, p1rx_bytes))
>              else:
> -            	self.verify(p1rx_bytes == frame_size - 4,
> +            	self.verify(p1rx_bytes == frame_size,
>                          	"packet pass assert error, expected %d RX
> bytes, actual %d" % (frame_size - 4, p1rx_bytes))
>          else:
>              self.verify(p1rx_bytes == frame_size,
>                          "packet pass assert error, expected %d RX bytes,
> actual %d" % (frame_size, p1rx_bytes))
> 
> -        self.verify(p0tx_bytes == frame_size,
> +        self.verify((p0tx_bytes + 4) == frame_size,
>                      "packet pass assert error, expected %d TX bytes,
> actual %d" % (frame_size, p0tx_bytes))
> 
>          return out
> --
> 1.9.3



More information about the dts mailing list