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 5B103A04F9; Fri, 10 Jan 2020 06:49:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DD98B1C030; Fri, 10 Jan 2020 06:49:13 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 8EFE21E889 for ; Fri, 10 Jan 2020 06:49:12 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A5ijNJ020008 for ; Thu, 9 Jan 2020 21:49:11 -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=pfpt0818; bh=XgS5btdww1fT2ELE7QUfe+j8ZlLGG25cChyUYXBkAXY=; b=rUubM2TfLsmNqzEu3jfjHGdy9qCV24huTxusYXOgbYxkJOpaVynYcbo3Ygm8yWt7tDOd cuGUc3pC/kOCli0XgcCFHmZKIa0GnGkASV8BHrXWhCURW36CHa44xn7xB2G11dQ1nA4u S7QCO5EJOgjyZHccl8PhryQ5rd4swVH5mocq+SU3O+6dyrkL3obqHV9x9LIfnI3vufvj jFDS85wyhEHpOt5C21llIg+gYM/UJghbGrgRfmwAoCGkQGLfiNHAH6AUGGxraYrJAsMB sjr7Gd22PHvjxWfgXr1DZXJ/EoApOijLZO9SjhSduivppCM5tawpc5sm5ezKEuEHlzPC AQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2xdu3258au-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 09 Jan 2020 21:49:11 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 9 Jan 2020 21:49:09 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 9 Jan 2020 21:49:09 -0800 Received: from cavium.marvell.com (unknown [10.28.10.96]) by maili.marvell.com (Postfix) with ESMTP id B903D3F703F; Thu, 9 Jan 2020 21:49:08 -0800 (PST) From: To: CC: , usurekha Date: Fri, 10 Jan 2020 11:15:13 +0530 Message-ID: <1578635113-6314-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.138, 18.0.572 definitions=2020-01-10_01:2020-01-10, 2020-01-09 signatures=0 Subject: [dts] [PATCH] TestSuite_tso.py:Modified csum set commands and testpmd command for cavium_a063 and cavium_a064 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 Added required tx-offload field in testpmd command. Modified csum set commands as SCTP and outer-ip packet checksum is unsupported by cavium_a063. Signed-off-by: usurekha --- tests/TestSuite_tso.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_tso.py b/tests/TestSuite_tso.py index c53f392..e1b912b 100644 --- a/tests/TestSuite_tso.py +++ b/tests/TestSuite_tso.py @@ -208,22 +208,27 @@ class TestTSO(TestCase): self.tester.send_expect("ethtool -K %s rx off tx off tso off gso off gro off lro off" % tx_interface, "# ") self.tester.send_expect("ip l set %s up" % tx_interface, "# ") - cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask, TSO_MTU) + if (self.nic in ["cavium_a063","cavium_a064"]): + cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 --tx-offloads=0x8000" % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask, TSO_MTU) + else: + cmd = "./%s/app/testpmd -c %s -n %d %s -- -i --rxd=512 --txd=512 --burst=32 --rxfreet=64 --mbcache=128 --portmask=%s --max-pkt-len=%s --txpt=36 --txht=0 --txwt=0 --txfreet=32 --txrst=32 " % (self.target, self.coreMask, self.dut.get_memory_channels(), self.blacklist, self.portMask, TSO_MTU) self.dut.send_expect(cmd, "testpmd> ", 120) self.dut.send_expect("set verbose 1", "testpmd> ", 120) self.dut.send_expect("port stop all", "testpmd> ", 120) self.dut.send_expect("csum set ip hw %d" % self.dut_ports[0], "testpmd> ", 120) self.dut.send_expect("csum set udp hw %d" % self.dut_ports[0], "testpmd> ", 120) self.dut.send_expect("csum set tcp hw %d" % self.dut_ports[0], "testpmd> ", 120) - self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[0], "testpmd> ", 120) - self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[0], "testpmd> ", 120) + if (self.nic not in ["cavium_a063", "cavium_a064"]): + self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[0], "testpmd> ", 120) + self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[0], "testpmd> ", 120) self.dut.send_expect("csum parse-tunnel on %d" % self.dut_ports[0], "testpmd> ", 120) self.dut.send_expect("csum set ip hw %d" % self.dut_ports[1], "testpmd> ", 120) self.dut.send_expect("csum set udp hw %d" % self.dut_ports[1], "testpmd> ", 120) self.dut.send_expect("csum set tcp hw %d" % self.dut_ports[1], "testpmd> ", 120) - self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[1], "testpmd> ", 120) - self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[1], "testpmd> ", 120) + if (self.nic not in ["cavium_a063", "cavium_a064"]): + self.dut.send_expect("csum set sctp hw %d" % self.dut_ports[1], "testpmd> ", 120) + self.dut.send_expect("csum set outer-ip hw %d" % self.dut_ports[1], "testpmd> ", 120) self.dut.send_expect("csum parse-tunnel on %d" % self.dut_ports[1], "testpmd> ", 120) self.dut.send_expect("tso set 800 %d" % self.dut_ports[1], "testpmd> ", 120) -- 2.7.4