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 871D5FFA for ; Thu, 25 Jan 2018 09:05:56 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jan 2018 00:05:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,411,1511856000"; d="scan'208";a="12475447" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga007.jf.intel.com with ESMTP; 25 Jan 2018 00:05:55 -0800 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 25 Jan 2018 00:05:55 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 25 Jan 2018 00:05:33 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by shsmsx102.ccr.corp.intel.com ([169.254.2.189]) with mapi id 14.03.0319.002; Thu, 25 Jan 2018 16:05:31 +0800 From: "Liu, Yong" To: "Lin, Xueqin" , "dts@dpdk.org" CC: "Lin, Xueqin" Thread-Topic: [dts] [PATCH]: Add port start, stop action and fix tx offload change. Thread-Index: AQHTlanqfQj8hoGkpEiDuNfRD3GovKOEOtpA Date: Thu, 25 Jan 2018 08:05:32 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62F5A6CD@SHSMSX103.ccr.corp.intel.com> References: <1516841738-17026-1-git-send-email-xueqin.lin@intel.com> In-Reply-To: <1516841738-17026-1-git-send-email-xueqin.lin@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDA2NmM2NzgtNDIxMy00OGQxLTllNzktM2Y1MTYxNTk5NzhiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJkZHZ3VVZQVThFek9BK0Z3QjRuOEZXU0N3S1hwQ0JUOFBGK2VsajVYTDdHc3pLVzh4a1p5TFZcL1Nibk9lZ2dLOSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH]: Add port start, stop action and fix tx offload change. 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, 25 Jan 2018 08:05:57 -0000 Thanks Xueqin, Applied. Please align with recommended commit subject format and strict each commit = line in 72 characters. Regards, Marvin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xueqin Lin > Sent: Thursday, January 25, 2018 8:56 AM > To: dts@dpdk.org > Cc: Lin, Xueqin > Subject: [dts] [PATCH]: Add port start, stop action and fix tx offload > change. >=20 > 1. Add port stop and start for csum and tx offload configuration due to > commit 597f9fafe13b. > 2. Add --tx-offloads=3D0x8000 to let jumboframe DEV_TX_OFFLOAD_MULTI_SEG= S > set and tx checksum offloads set. >=20 > --- > tests/TestSuite_tx_preparation.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_tx_preparation.py > b/tests/TestSuite_tx_preparation.py > index 5916526..eea95c1 100644 > --- a/tests/TestSuite_tx_preparation.py > +++ b/tests/TestSuite_tx_preparation.py > @@ -89,11 +89,12 @@ class TestTX_preparation(TestCase): > self.dut_testpmd =3D PmdOutput(self.dut) > # use one port test the case > self.dut_testpmd.start_testpmd( > - "Default", " --portmask=3D1 --port-topology=3Dchained --= max- > pkt-len=3D%s" %Max_mtu) > + "Default", " --portmask=3D1 --port-topology=3Dchained --= max- > pkt-len=3D%s --tx-offloads=3D0x8000" %Max_mtu) > self.dmac =3D self.dut_testpmd.get_port_mac(0) > self.dut_testpmd.execute_cmd('set fwd csum') > self.dut_testpmd.execute_cmd('set verbose 1') > #enable ip/udp/tcp hardware checksum > + self.dut_testpmd.execute_cmd('port stop all') > self.dut_testpmd.execute_cmd('csum set ip hw 0') > self.dut_testpmd.execute_cmd('csum set tcp hw 0') > self.dut_testpmd.execute_cmd('csum set udp hw 0') > @@ -168,6 +169,7 @@ class TestTX_preparation(TestCase): > ftag functional test > """ > self.dut_testpmd.execute_cmd('tso set 0 0') > + self.dut_testpmd.execute_cmd('port start all') > self.dut_testpmd.execute_cmd('start') >=20 > self.send_packet_verify() > @@ -179,6 +181,7 @@ class TestTX_preparation(TestCase): > ftag functional test > """ > self.dut_testpmd.execute_cmd('tso set %s 0' %TSO_value) > + self.dut_testpmd.execute_cmd('port start all') > self.dut_testpmd.execute_cmd('start') >=20 > self.send_packet_verify(1) > -- > 2.5.5