From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id DBCAA11C5 for ; Tue, 8 Dec 2015 08:04:50 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 07 Dec 2015 23:04:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,398,1444719600"; d="scan'208";a="836564313" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga001.jf.intel.com with ESMTP; 07 Dec 2015 23:04:34 -0800 From: Lijuan Tu To: dts@dpdk.org Date: Tue, 8 Dec 2015 15:00:06 +0800 Message-Id: <1449558006-82171-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH]tests enable_disablejumbo: adjust 1G NICs packet length X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2015 07:04:51 -0000 From: lijuan tu On 1G NICs, when the jubmo frame MTU set as X, the software adjust it to (X + 4). Signed-off-by: lijuan tu --- 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