[dts] [PATCH] Debug failed case jumboframes_bigger_jumbo

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


On 1G NICs, when the jubmo frame MTU set as 9000, the software adjust it to 9004.
So, we should send a 9005 bytes packet to test the jumboframes_bigger_jumbo case.

Signed-off-by: changru <changrux.fan at intel.com>
---
 tests/TestSuite_jumboframes.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py
index c5c70b9..5ad9e00 100644
--- a/tests/TestSuite_jumboframes.py
+++ b/tests/TestSuite_jumboframes.py
@@ -208,8 +208,14 @@ class TestJumboframes(TestCase):
             self.dut.send_expect("set promisc all off", "testpmd> ")
             self.dut.send_expect("set fwd mac", "testpmd> ")
         self.dut.send_expect("start", "testpmd> ")
-
-        self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 1, False)
+        
+        """
+        On 1G NICs, when the jubmo frame MTU set as 9000, the software adjust it to 9004.
+        """
+        if self.nic in ["powerville", "springville", "kawela_4"]:
+            self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 4 + 1, False)
+        else:
+            self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 1, False)
 
         self.dut.send_expect("quit", "# ", 30)
 
-- 
2.1.0



More information about the dts mailing list