[dts] [PATCH] Fix reconfigure_ports failed issue

changru changrux.fan at intel.com
Thu Sep 17 10:30:56 CEST 2015


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 at 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



More information about the dts mailing list