From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 12B405A4D for ; Thu, 10 Dec 2015 03:09:05 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 09 Dec 2015 18:09:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,406,1444719600"; d="scan'208";a="857734865" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga001.fm.intel.com with ESMTP; 09 Dec 2015 18:09:03 -0800 Message-ID: <5668DEAB.30204@intel.com> Date: Thu, 10 Dec 2015 10:08:43 +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: Lijuan Tu , dts@dpdk.org References: <1449558006-82171-1-git-send-email-lijuanx.a.tu@intel.com> In-Reply-To: <1449558006-82171-1-git-send-email-lijuanx.a.tu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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: Thu, 10 Dec 2015 02:09:06 -0000 Applied. Thanks. On 12/08/2015 03:00 PM, Lijuan Tu wrote: > 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)