[dts] [PATCH]tests enable_disablejumbo: adjust 1G NICs packet length
Lijuan Tu
lijuanx.a.tu at intel.com
Tue Dec 8 08:00:06 CET 2015
From: lijuan tu <lijuanx.a.tu at intel.com>
On 1G NICs, when the jubmo frame MTU set as X, the software adjust it to (X + 4).
Signed-off-by: lijuan tu <lijuanx.a.tu at intel.com>
---
tests/TestSuite_shutdown_api.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index 241e072..efbe934 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -365,6 +365,11 @@ class TestShutdownApi(TestCase):
self.dut.send_expect("port config all hw-vlan off", "testpmd> ")
self.dut.send_expect("port start all", "testpmd> ", 100)
self.dut.send_expect("start", "testpmd> ")
+ """
+ On 1G NICs, when the jubmo frame MTU set as X, the software adjust it to (X + 4).
+ """
+ if self.nic in ["powerville", "springville", "kawela_4"]:
+ jumbo_size += 4
self.check_forwarding(pktSize=jumbo_size - 1)
self.check_forwarding(pktSize=jumbo_size)
self.check_forwarding(pktSize=jumbo_size + 1, received=False)
--
2.1.0
More information about the dts
mailing list