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 920D72A61 for ; Thu, 17 Sep 2015 11:04:46 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 17 Sep 2015 02:04:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,545,1437462000"; d="scan'208";a="807113791" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga002.fm.intel.com with ESMTP; 17 Sep 2015 02:04:44 -0700 Message-ID: <55FA82C0.305@intel.com> Date: Thu, 17 Sep 2015 17:07:12 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: changru , dts@dpdk.org References: <1442479870-42848-1-git-send-email-changrux.fan@intel.com> In-Reply-To: <1442479870-42848-1-git-send-email-changrux.fan@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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 09:04:47 -0000 Applied. Thanks. On 09/17/2015 04:51 PM, changru wrote: > 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) >