test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] Fix reconfigure_ports failed issue
@ 2015-09-17  8:30 changru
  2015-09-17  8:48 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: changru @ 2015-09-17  8:30 UTC (permalink / raw)
  To: dts

If enable the CRC stripping mode. On 1G NICs, the packet received has the same length with the packet sent.

Signed-off-by: changru <changrux.fan@intel.com>
---
 tests/TestSuite_shutdown_api.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index 92ab67f..1661eea 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -152,6 +152,9 @@ class TestShutdownApi(TestCase):
                                 "powerville", "springville", "hartwell"]:
                     self.verify(p1rx_bytes - 4 == pktSize,
                                 "Wrong RX bytes CRC strip: p1_rx=%d, pktSize=%d" % (p1rx_bytes, pktSize))
+                elif self.nic in ["powerville", "springville", "kawela_4"]:
+                    self.verify(p1rx_bytes == pktSize,
+                                "Wrong RX bytes CRC strip: p1_rx=%d, pktSize=%d" % (p1rx_bytes, pktSize))                  
                 else:
                     self.verify(p1rx_bytes == pktSize - 4,
                                 "Wrong RX bytes CRC strip: p1_rx=%d, pktSize=%d" % (p1rx_bytes, pktSize))
-- 
2.1.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH] Fix reconfigure_ports failed issue
  2015-09-17  8:30 [dts] [PATCH] Fix reconfigure_ports failed issue changru
@ 2015-09-17  8:48 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2015-09-17  8:48 UTC (permalink / raw)
  To: Fan, ChangruX, dts

Thanks. Applied.

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of changru
> Sent: Thursday, September 17, 2015 4:31 PM
> To: dts@dpdk.org
> Subject: [dts] [PATCH] Fix reconfigure_ports failed issue
> 
> If enable the CRC stripping mode. On 1G NICs, the packet received has the
> same length with the packet sent.
> 
> Signed-off-by: changru <changrux.fan@intel.com>
> ---
>  tests/TestSuite_shutdown_api.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tests/TestSuite_shutdown_api.py
> b/tests/TestSuite_shutdown_api.py
> index 92ab67f..1661eea 100644
> --- a/tests/TestSuite_shutdown_api.py
> +++ b/tests/TestSuite_shutdown_api.py
> @@ -152,6 +152,9 @@ class TestShutdownApi(TestCase):
>                                  "powerville", "springville", "hartwell"]:
>                      self.verify(p1rx_bytes - 4 == pktSize,
>                                  "Wrong RX bytes CRC strip: p1_rx=%d,
> pktSize=%d" % (p1rx_bytes, pktSize))
> +                elif self.nic in ["powerville", "springville",
> "kawela_4"]:
> +                    self.verify(p1rx_bytes == pktSize,
> +                                "Wrong RX bytes CRC strip: p1_rx=%d,
> pktSize=%d" % (p1rx_bytes, pktSize))
>                  else:
>                      self.verify(p1rx_bytes == pktSize - 4,
>                                  "Wrong RX bytes CRC strip: p1_rx=%d,
> pktSize=%d" % (p1rx_bytes, pktSize))
> --
> 2.1.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-17  8:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-17  8:30 [dts] [PATCH] Fix reconfigure_ports failed issue changru
2015-09-17  8:48 ` Liu, Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).