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 E7ED9A046B for ; Wed, 26 Jun 2019 12:14:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DBBB72956; Wed, 26 Jun 2019 12:14:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 2EE2828EE for ; Wed, 26 Jun 2019 12:14:54 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5QAEra8010430; Wed, 26 Jun 2019 03:14:53 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=TLqyhfFTOeD3VjpcA25HD89ww+l6AxwpaPsmnmOB9TY=; b=QZeGjvQLY9h39gsKMv+/8gbgukLA2a+ch+cKCMSSkCBS2zk6r3zCo3xaAd+ZDLFUZ+HW 8gd4P9bX+gV+JdL46yzzuMKGlL7dIV0qhshvSGVorAVSQv4m+EFn5D1oj+qdWirM3o+Z vXbHLz84cyzS/TlS0pjKdFa9O7MufhJyDRElZI18TvAwocrlJe4ov6MZYscwnzjJ8ruy 7OYHcfuh/HJsoHI6r+rm7Ix2mvhkRePkzCwCRfhwkkfUX1naZM+p0y4bl9ZmeGMvD4qO Kcn281b7II5vMViJ5GzWXZoaqDkgEgDyxucezEqgbkyF42EMDr3WpuSTGY+WA+zYi2Z9 3Q== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2tc5ht0961-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 26 Jun 2019 03:14:53 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 26 Jun 2019 03:14:48 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (104.47.50.51) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Wed, 26 Jun 2019 03:14:48 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TLqyhfFTOeD3VjpcA25HD89ww+l6AxwpaPsmnmOB9TY=; b=pfWXE9Sg5oel27Wqv09i484OOlWQHbm822jRKbKlAKSWOpHa0S3cTHFQKl0mfam27MTTz0ijXkvtWCH+9YXmU6coJiUffKFdazVetQcivyZQMTnZVXHlFAW35pt2JRGYAMEZfMTvP32IYzRcv0/k+OANSzrY430kR+D21xeWGoc= Received: from MN2PR18MB2704.namprd18.prod.outlook.com (20.178.255.93) by MN2PR18MB2767.namprd18.prod.outlook.com (20.179.20.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.13; Wed, 26 Jun 2019 10:14:44 +0000 Received: from MN2PR18MB2704.namprd18.prod.outlook.com ([fe80::bcda:b9a0:2189:b926]) by MN2PR18MB2704.namprd18.prod.outlook.com ([fe80::bcda:b9a0:2189:b926%6]) with mapi id 15.20.2008.018; Wed, 26 Jun 2019 10:14:44 +0000 From: Phanendra Vukkisala To: "Tu, Lijuan" , "dts@dpdk.org" CC: Vijaya Bhaskar Annayyolla , Faisal Masood Thread-Topic: [dts] [PATCH] checksum_offload: Support this test in vector mode Thread-Index: AQHVIqIXXixhLyl/RU6FgHLbig/oTKatlJwAgAA12WA= Date: Wed, 26 Jun 2019 10:14:44 +0000 Message-ID: References: <1560510756-509-1-git-send-email-pvukkisala@marvell.com> <8CE3E05A3F976642AAB0F4675D0AD20E0BAC46D3@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <8CE3E05A3F976642AAB0F4675D0AD20E0BAC46D3@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2de85b63-cfa7-4c2a-6d95-08d6fa1f1c32 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR18MB2767; x-ms-traffictypediagnostic: MN2PR18MB2767: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:32; x-forefront-prvs: 00808B16F3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(346002)(396003)(39860400002)(376002)(189003)(199004)(13464003)(76176011)(6506007)(53546011)(53936002)(55236004)(55016002)(7696005)(9686003)(5660300002)(229853002)(110136005)(316002)(54906003)(52536014)(99286004)(2501003)(6436002)(478600001)(2906002)(14454004)(66446008)(64756008)(66556008)(66476007)(66946007)(73956011)(76116006)(33656002)(25786009)(107886003)(4326008)(6246003)(81156014)(8676002)(81166006)(8936002)(186003)(26005)(86362001)(102836004)(68736007)(3846002)(6116002)(71190400001)(71200400001)(7736002)(305945005)(74316002)(14444005)(256004)(476003)(11346002)(66066001)(486006)(446003); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2767; H:MN2PR18MB2704.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: SCrE1Uzn+BivDCX2KYhjL7Rz1fiUtnFGG7kjNkT2w9elNDlbPvj8Ns2/gpVHgA3ahlyscg17Gc0+uqWWEcjAPHKf0h1O40FyK/FQ28S8YV2h8gt8nSXH3Et6Nv+af0EXmM22f34whrkVDhKGm5PNPvhCesZ50cHpfDc1+/c+AURFYNoS6447PpsSMMUvdt3QQwmNFHcgDG4VHjcE7ro8L7VVJi7p/E8FaUDS38q3RnbXcX+yUIVJqWhzIC86Kw1hQkrb/hV7HoclQrWBKBk/3dRGmq8mVGZ1ULKzlUYMGiblLjwSJHxU/b0ig/HnGVHlYnoAKqjOBrenkaAtMIZAqdn29etLPQvOfrYqpEYWhinLcPPTe2HAao2KvMTlT7P5JrzzU3lhKvRKWZ19z4XCD5L5vNIRxNj80PkOOYG6PXI= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 2de85b63-cfa7-4c2a-6d95-08d6fa1f1c32 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2019 10:14:44.2481 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pvukkisala@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB2767 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-26_05:, , signatures=0 Subject: Re: [dts] [PATCH] checksum_offload: Support this test in 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" Hi Lijuan, Submitted patch. Regards, Phanendra -----Original Message----- From: Tu, Lijuan =20 Sent: Wednesday, June 26, 2019 12:31 PM To: Phanendra Vukkisala ; dts@dpdk.org Cc: Vijaya Bhaskar Annayyolla ; Faisal Masood Subject: RE: [dts] [PATCH] checksum_offload: Support this test in vector mo= de Hi Phanendra, Could you please rework the patch, applied failed , maybe because the code = baseline changed. Applying: checksum_offload: Support this test in vector mode error: patch failed: tests/TestSuite_checksum_offload.py:174 error: tests/TestSuite_checksum_offload.py: patch does not apply Patch fail= ed at 0001 checksum_offload: Support this test in vector mode > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of=20 > pvukkisala@marvell.com > Sent: Friday, June 14, 2019 7:13 PM > To: dts@dpdk.org > Cc: avijay@marvell.com; fmasood@marvell.com; Phanendra Vukkisala=20 > > Subject: [dts] [PATCH] checksum_offload: Support this test in vector=20 > mode >=20 > From: Phanendra Vukkisala >=20 > Send and sniff 4 packets to support vector mode cavium HW stops=20 > calculating check sums upon receiving first incorrect checksum. So=20 > accept unknown also as bad >=20 > Signed-off-by: Phanendra Vukkisala > --- > tests/TestSuite_checksum_offload.py | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) >=20 > diff --git a/tests/TestSuite_checksum_offload.py > b/tests/TestSuite_checksum_offload.py > index 6541ba5..d4021b9 100644 > --- a/tests/TestSuite_checksum_offload.py > +++ b/tests/TestSuite_checksum_offload.py > @@ -118,7 +118,7 @@ class TestChecksumOffload(TestCase): > self.tester.scapy_foreground() >=20 > for packet_type in packets_sent.keys(): > - self.tester.scapy_append('sendp([%s], iface=3D"%s")' % > (packets_sent[packet_type], tx_interface)) > + self.tester.scapy_append('sendp([%s], iface=3D"%s", count=3D= 4)' > + % (packets_sent[packet_type], tx_interface)) > self.tester.scapy_execute() > out =3D self.dut.get_session_output(timeout=3D1) > lines =3D out.split("\r\n") @@ -146,7 +146,10 @@ class=20 > TestChecksumOffload(TestCase): > self.verify("PKT_RX_L4_CKSUM_GOOD" in=20 > line, "Packet Rx > L4 checksum valid-flags error!") > self.verify("PKT_RX_IP_CKSUM_GOOD" in=20 > line, "Packet Rx IP checksum valid-flags error!") > elif (flag =3D=3D 0): > - self.verify("PKT_RX_L4_CKSUM_BAD" in lin= e, "Packet Rx > L4 checksum valid-flags error!") > + if self.nic =3D=3D "cavium_a063": > + self.verify("PKT_RX_L4_CKSUM_BAD"=20 > + in line or > "PKT_RX_L4_CKSUM_UNKNOWN" in line, "Packet Rx L4 checksum valid-flags > error!") > + else: > + self.verify("PKT_RX_L4_CKSUM_BAD" > + in line, "Packet Rx L4 checksum valid-flags error!") > self.verify("PKT_RX_IP_CKSUM_BAD" in=20 > line, "Packet Rx IP checksum valid-flags error!") >=20 > self.dut.send_expect("stop", "testpmd>") @@ -174,11 +177,11=20 > @@ class TestChecksumOffload(TestCase): >=20 > self.tester.send_expect("exit()", "#") >=20 > - inst =3D self.tester.tcpdump_sniff_packets(intf=3Drx_interface, > count=3Dlen(packets_sent), > + inst =3D self.tester.tcpdump_sniff_packets(intf=3Drx_interface, > + count=3Dlen(packets_sent)*4, > filters=3D[{'layer':'ether', 'config':{'src':=20 > sniff_src}}]) >=20 > for packet_type in packets_sent.keys(): > - self.tester.scapy_append('sendp([%s], iface=3D"%s")' % > (packets_sent[packet_type], tx_interface)) > + self.tester.scapy_append('sendp([%s], iface=3D"%s", count=3D= 4)' > + % (packets_sent[packet_type], tx_interface)) >=20 > self.tester.scapy_execute() > p =3D self.tester.load_tcpdump_sniff_packets(inst) > @@ -186,7 +189,7 @@ class TestChecksumOffload(TestCase): > reslist =3D > [p[i].pktgen.pkt.sprintf("%IP.chksum%;%TCP.chksum%;%UDP.chksum%;%SCTP. > chksum%") for i in range(nr_packets)] > out =3D string.join(reslist, ",") > packets_received =3D out.split(',') > - self.verify(len(packets_sent) =3D=3D len(packets_received), "Une= xpected > Packets Drop") > + self.verify(len(packets_sent)*4 =3D=3D len(packets_received),=20 > + "Unexpected Packets Drop") >=20 > for packet_received in packets_received: > ip_checksum, tcp_checksum, udp_checksum, sctp_checksum =3D > packet_received.split(';') > -- > 1.7.9.5