From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id B04B0A046B for ; Wed, 26 Jun 2019 10:41:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7A6222BE3; Wed, 26 Jun 2019 10:41:34 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 1A47D2B98 for ; Wed, 26 Jun 2019 10:41:31 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 01:41:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,419,1557212400"; d="scan'208";a="155794182" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 26 Jun 2019 01:41:25 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Jun 2019 01:41:25 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Jun 2019 01:41:25 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.87]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.173]) with mapi id 14.03.0439.000; Wed, 26 Jun 2019 16:41:23 +0800 From: "Tu, Lijuan" To: "thaq@marvell.com" , "dts@dpdk.org" CC: "fmasood@marvell.com" , "avijay@marvell.com" Thread-Topic: [dts] [PATCH] tests/TestSuite_ipgre.py: Modified ipgre-GRE_packet_chksum_offload testcase to Uncheck sctp chksum if nic-card is cavium_a063. Setting send packet count as 4 to support Vector mode. Thread-Index: AQHVJeNdK72aR7q+XkCLozSAP10jQKatqg6Q Date: Wed, 26 Jun 2019 08:41:22 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAC533C@SHSMSX101.ccr.corp.intel.com> References: <1560868593-853-1-git-send-email-thaq@marvell.com> In-Reply-To: <1560868593-853-1-git-send-email-thaq@marvell.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNmE0Y2E1NjUtMTYyZS00MWM1LWJhYmEtZThlYWNjYTJjMzIzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiemY4WmtcL3lMcFwvcmVHWnV0c0x3T2dvd04yTnVIMmRrZDhwWW9MY0hrbU5NUHJvbnhsZHB4c3p2OFwvSHNTbVEyTyJ9 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] tests/TestSuite_ipgre.py: Modified ipgre-GRE_packet_chksum_offload testcase to Uncheck sctp chksum if nic-card is cavium_a063. Setting send packet count as 4 to support Vector mode. 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of thaq@marvell.com > Sent: Tuesday, June 18, 2019 10:37 PM > To: dts@dpdk.org > Cc: fmasood@marvell.com; avijay@marvell.com; Thanseerulhaq > > Subject: [dts] [PATCH] tests/TestSuite_ipgre.py: Modified ipgre- > GRE_packet_chksum_offload testcase to Uncheck sctp chksum if nic-card is > cavium_a063. Setting send packet count as 4 to support Vector mode. >=20 > From: Thanseerulhaq >=20 > Signed-off-by: Thanseerulhaq > --- > tests/TestSuite_ipgre.py | 51 ++++++++++++++++++++++++------------------= ------ > 1 file changed, 26 insertions(+), 25 deletions(-) >=20 > diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py index > f188df0..de366b0 100644 > --- a/tests/TestSuite_ipgre.py > +++ b/tests/TestSuite_ipgre.py > @@ -99,7 +99,7 @@ class TestIpgre(TestCase): > for layer in layer_configs.keys(): > pkt.config_layer(layer, layer_configs[layer]) > inst =3D self.tester.tcpdump_sniff_packets(self.tester_iface= , count=3D1, > timeout=3D8) > - pkt.send_pkt(tx_port=3Dself.tester_iface) > + pkt.send_pkt(tx_port=3Dself.tester_iface, count =3D 4) > out =3D self.dut.get_session_output(timeout=3D2) > time.sleep(1) > self.tester.load_tcpdump_sniff_packets(inst) > @@ -315,7 +315,8 @@ class TestIpgre(TestCase): > self.dut.send_expect("port stop all", "testpmd>") > self.dut.send_expect("csum set ip hw 0", "testpmd>") > self.dut.send_expect("csum set udp hw 0", "testpmd>") > - self.dut.send_expect("csum set sctp hw 0", "testpmd>") > + if self.nic !=3D "cavium_a063": > + self.dut.send_expect("csum set sctp hw 0", "testpmd>") > self.dut.send_expect("csum set outer-ip hw 0", "testpmd>") > self.dut.send_expect("csum set tcp hw 0", "testpmd>") > self.dut.send_expect("csum parse-tunnel on 0", "testpmd>") @@ - > 407,29 +408,29 @@ class TestIpgre(TestCase): > 'udp': {'chksum': 0xffff}} > self.check_packet_transmission(pkt_types, config_layers) > self.compare_checksum() > - > - # Send packet with wrong inner SCTP checksum and check forwarded > packet SCTP checksum is correct > - pkt_types =3D { "MAC_IP_GRE_IPv4-TUNNEL_SCTP_PKT": > ["PKT_TX_SCTP_CKSUM"]} > - config_layers =3D {'ether': {'src': self.outer_mac_src, > - 'dst': self.outer_mac_dst}, > - 'ipv4': {'proto': 'gre', > - 'src': self.outer_ip_src, > - 'dst': self.outer_ip_dst}, > - 'inner_ipv4':{'src':self.inner_ip_src, > - 'dst':self.inner_ip_dst}, > - 'sctp': {'src': 53, > - 'dst': 53}} > - self.save_ref_packet(pkt_types, config_layers) > - config_layers =3D {'ether': {'src': self.outer_mac_src, > - 'dst': self.outer_mac_dst}, > - 'ipv4': {'proto': 'gre', > - 'src': self.outer_ip_src, > - 'dst': self.outer_ip_dst}, > - 'inner_ipv4':{'src':self.inner_ip_src, > - 'dst':self.inner_ip_dst}, > - 'sctp': {'chksum': 0x0}} > - self.check_packet_transmission(pkt_types, config_layers) > - self.compare_checksum() > + if self.nic !=3D "cavium_a063": > + # Send packet with wrong inner SCTP checksum and check forwa= rded > packet SCTP checksum is correct > + pkt_types =3D { "MAC_IP_GRE_IPv4-TUNNEL_SCTP_PKT": > ["PKT_TX_SCTP_CKSUM"]} > + config_layers =3D {'ether': {'src': self.outer_mac_src, > + 'dst': self.outer_mac_dst}, > + 'ipv4': {'proto': 'gre', > + 'src': self.outer_ip_src, > + 'dst': self.outer_ip_dst}, > + 'inner_ipv4':{'src':self.inner_ip_src, > + 'dst':self.inner_ip_dst}, > + 'sctp': {'src': 53, > + 'dst': 53}} > + self.save_ref_packet(pkt_types, config_layers) > + config_layers =3D {'ether': {'src': self.outer_mac_src, > + 'dst': self.outer_mac_dst}, > + 'ipv4': {'proto': 'gre', > + 'src': self.outer_ip_src, > + 'dst': self.outer_ip_dst}, > + 'inner_ipv4':{'src':self.inner_ip_src, > + 'dst':self.inner_ip_dst}, > + 'sctp': {'chksum': 0x0}} > + self.check_packet_transmission(pkt_types, config_layers) > + self.compare_checksum() >=20 > self.dut.send_expect("quit", "#") >=20 > -- > 1.8.3.1