[dts] [PATCH V1]tests/shutdown-api: fix the crc-strip issue
Han, YingyaX
yingyax.han at intel.com
Thu Aug 2 08:37:59 CEST 2018
Hi Marvin,
Ok, I'll change it. Thank you for your advice.
Yingya
-----Original Message-----
From: Liu, Yong
Sent: Thursday, August 2, 2018 1:03 PM
To: Han, YingyaX <yingyax.han at intel.com>; dts at dpdk.org
Cc: Han, YingyaX <yingyax.han at intel.com>
Subject: RE: [dts] [PATCH V1]tests/shutdown-api: fix the crc-strip issue
Hi Yingya,
Hex value 0x10000 look wired here, please change the verify message to "CRC keeping not enabled properly" which will be more meaningful.
Thanks,
Marvin
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of han,yingya
> Sent: Thursday, August 02, 2018 10:18 AM
> To: dts at dpdk.org
> Cc: Han, YingyaX <yingyax.han at intel.com>
> Subject: [dts] [PATCH V1]tests/shutdown-api: fix the crc-strip issue
>
> The "disable-crc-strip" parameter was modified in dpdk 18.08.
> The expected value for RX_offloads when crc-strip is off is 0x10000
> and when crc-strip is on is 0x1000.
> More details can refer to dpdk commit e557ebc0 and DPDK-5829.
> Signed-off-by: han,yingya <yingyax.han at intel.com>
> ---
> tests/TestSuite_shutdown_api.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_shutdown_api.py
> b/tests/TestSuite_shutdown_api.py index d00c3fb..3cb0eff 100644
> --- a/tests/TestSuite_shutdown_api.py
> +++ b/tests/TestSuite_shutdown_api.py
> @@ -266,7 +266,7 @@ class TestShutdownApi(TestCase):
> self.pmdout.start_testpmd("Default", "--portmask=%s --port-
> topology=loop --disable-crc-strip" % utils.create_mask(self.ports),
> socket=self.ports_socket)
> out = self.dut.send_expect("show config rxtx", "testpmd> ")
> self.verify(
> - "Rx offloads=0x0" in out, "CRC stripping not disabled properly")
> + "Rx offloads=0x10000" in out, "CRC stripping not disabled
> properly")
>
> self.dut.send_expect("port stop all", "testpmd> ", 100)
> self.dut.send_expect("port config all crc-strip on",
> "testpmd> ")
> --
> 1.9.3
More information about the dts
mailing list