From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id A54F558D4 for ; Thu, 17 Sep 2015 10:55:28 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 17 Sep 2015 01:55:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,545,1437462000"; d="scan'208";a="646633410" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga003.jf.intel.com with ESMTP; 17 Sep 2015 01:55:26 -0700 From: changru To: dts@dpdk.org Date: Thu, 17 Sep 2015 16:51:10 +0800 Message-Id: <1442479870-42848-1-git-send-email-changrux.fan@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH] Debug failed case jumboframes_bigger_jumbo 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: Thu, 17 Sep 2015 08:55:29 -0000 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 --- 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