[dts] [PATCH 1/3] tests: Add RRC support with jumbo frame
Michael Qiu
michael.qiu at intel.com
Tue Jul 7 11:37:58 CEST 2015
this patch make jumbo frame suit support RRC
Signed-off-by: Michael Qiu <michael.qiu at intel.com>
---
tests/TestSuite_jumboframes.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py
index 4f34c13..81c8b23 100644
--- a/tests/TestSuite_jumboframes.py
+++ b/tests/TestSuite_jumboframes.py
@@ -136,6 +136,9 @@ class TestJumboframes(TestCase):
frame on testpmd app.
"""
self.pmdout.start_testpmd("Default", "--max-pkt-len=%d" % (ETHER_STANDARD_MTU))
+ if self.nic == "redrockcanyou":
+ 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_STANDARD_MTU - 1)
@@ -150,6 +153,9 @@ class TestJumboframes(TestCase):
jumbo frame support.
"""
self.pmdout.start_testpmd("Default", "--max-pkt-len=%d" % (ETHER_STANDARD_MTU))
+ if self.nic == "redrockcanyou":
+ 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_STANDARD_MTU + 1, False)
@@ -163,6 +169,9 @@ class TestJumboframes(TestCase):
packet forwrding should be support correct.
"""
self.pmdout.start_testpmd("Default", "--max-pkt-len=%s" % (ETHER_JUMBO_FRAME_MTU))
+ if self.nic == "redrockcanyou":
+ 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(1517)
@@ -177,6 +186,9 @@ class TestJumboframes(TestCase):
packet can be forwarded correct.
"""
self.pmdout.start_testpmd("Default", "--max-pkt-len=%s" % (ETHER_JUMBO_FRAME_MTU))
+ if self.nic == "redrockcanyou":
+ 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_STANDARD_MTU + 1)
@@ -192,6 +204,9 @@ class TestJumboframes(TestCase):
packet which the length bigger than MTU can not be forwarded.
"""
self.pmdout.start_testpmd("Default", "--max-pkt-len=%s" % (ETHER_JUMBO_FRAME_MTU))
+ if self.nic == "redrockcanyou":
+ 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)
--
1.9.3
More information about the dts
mailing list