From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B3BF1A052A; Thu, 26 Nov 2020 12:08:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 76145C950; Thu, 26 Nov 2020 12:08:09 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 069F8C940 for ; Thu, 26 Nov 2020 12:08:07 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 0AQB6J5R030344 for ; Thu, 26 Nov 2020 03:08:06 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=wW9pPhaQUFNwxJfokf/eg+BrAzaV5QO5tp/s0N/Ocrc=; b=GnAC+2ZgLxYXmQqvYzgH/dTgaRMKbzyy7xbQY7KcTdaMDg6VuXodHm7vBWTUMwlo+X3V hD2c9HEOldJg3WDemfh0WGz4Ss4wsomUqwDn0I5jkkB96X5LL9QPqgrx1CwsqAxA1p2h ySG9TN0cCIvW0KR8e6X31kEphH88KX8LdyoowLG/7v3zfaqjhuYMspqXYzrC1wQLmCaB KOxpVoW7bBgns0u7/3H4DX0uPoWrbo2x38U5QROt5CiEdCCUVjCZ09WGbmQpRGS/lNiz yvg7oOtyisS2RtawuazLqLsep3rRFE2NmKggSNo0my64oEzrnzHThSpSDPTIEJTji/4x Nw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 351muf4crh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 26 Nov 2020 03:08:06 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 26 Nov 2020 03:08:05 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 26 Nov 2020 03:08:04 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 26 Nov 2020 03:08:04 -0800 Received: from cavium.marvell.com (unknown [10.28.8.64]) by maili.marvell.com (Postfix) with ESMTP id A69883F703F; Thu, 26 Nov 2020 03:08:02 -0800 (PST) From: To: CC: , , usurekha Date: Thu, 26 Nov 2020 16:32:59 +0530 Message-ID: <1606388579-6077-1-git-send-email-usurekha@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-26_03:2020-11-26, 2020-11-26 signatures=0 Subject: [dts] [PATCH] tests/TestSuite_rxtx_offload.py:Added cavium_nic and tcp/udp l4 csum verification command for cavium 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" From: usurekha Signed-off-by: usurekha --- tests/TestSuite_rxtx_offload.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py index bf2c901..9257174 100644 --- a/tests/TestSuite_rxtx_offload.py +++ b/tests/TestSuite_rxtx_offload.py @@ -90,7 +90,7 @@ class TestRxTx_Offload(TestCase): # Support i40e/ixgbe NICs self.verify(self.nic in ["fortville_eagle", "fortville_spirit","fortville_25g", "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "carlsville", - "niantic", "twinpond", "sagepond", "sageville", "foxville"], "NIC Unsupported: " + str(self.nic)) + "niantic", "twinpond", "sagepond", "sageville", "foxville", "cavium_a063", "cavium_a064"], "NIC Unsupported: " + str(self.nic)) # Based on h/w type, choose how many ports to use self.dut_ports = self.dut.get_ports(self.nic) # Verify that enough ports are available @@ -271,7 +271,10 @@ class TestRxTx_Offload(TestCase): else: self.verify("PKT_RX_IP_CKSUM_GOOD" in line, "ipv4 checksum flag is wrong!") if ("udp" in flags) or ("tcp" in flags): - self.verify("PKT_RX_L4_CKSUM_BAD" in line, "L4 checksum flag is wrong!") + if self.nic in ['cavium_a063', 'cavium_a064']: + self.verify("PKT_RX_L4_CKSUM_BAD" or "PKT_RX_L4_CKSUM_UNKNOWN" in line, "L4 checksum flag is wrong!") + else: + self.verify("PKT_RX_L4_CKSUM_BAD" in line, "L4 checksum flag is wrong!") else: self.verify(("PKT_RX_L4_CKSUM_GOOD" in line) or ("PKT_RX_L4_CKSUM_UNKNOWN" in line), "L4 checksum flag is wrong!") # collect the tx checksum result @@ -431,7 +434,7 @@ class TestRxTx_Offload(TestCase): self.pmdout.start_testpmd("%s" % self.cores, "--rxq=4 --txq=4") capabilities = self.check_port_capability("rx") for capability in capabilities: - if self.nic == 'foxville' and capability == 'sctp_cksum': + if self.nic in ['foxville', 'cavium_a063', 'cavium_a064'] and capability == 'sctp_cksum': continue if capability != "jumboframe": self.dut.send_expect("port stop 0", "testpmd> ") @@ -505,7 +508,7 @@ class TestRxTx_Offload(TestCase): self.dut.send_expect("set fwd txonly", "testpmd> ") self.dut.send_expect("set verbose 1", "testpmd> ") if (self.nic in ["fortville_eagle", "fortville_spirit","fortville_25g", - "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "carlsville"]): + "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "carlsville","cavium_a063", "cavium_a064"]): self.dut.send_expect("port stop 0", "testpmd> ") self.dut.send_expect("port config 0 tx_offload mbuf_fast_free off", "testpmd> ") self.check_port_config("tx", "NULL") -- 2.7.4