test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH]tests enable_disablejumbo: adjust 1G NICs packet length
@ 2015-12-08  7:00 Lijuan Tu
  2015-12-10  2:08 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Lijuan Tu @ 2015-12-08  7:00 UTC (permalink / raw)
  To: dts

From: lijuan tu <lijuanx.a.tu@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@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

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

end of thread, other threads:[~2015-12-10  2:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-08  7:00 [dts] [PATCH]tests enable_disablejumbo: adjust 1G NICs packet length Lijuan Tu
2015-12-10  2:08 ` 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).