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 0B6BBA00E6 for ; Thu, 13 Jun 2019 09:07:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CFD5A1CFFF; Thu, 13 Jun 2019 09:07:11 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id EF2091CFFC for ; Thu, 13 Jun 2019 09:07:09 +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 x5D7124k003488 for ; Thu, 13 Jun 2019 00:07:09 -0700 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=NJ6/o0LnwMBtLeTL5oqwz8E0FiAj/CglPCCwlt3FOuI=; b=Bc69152Bxm9Nes185VTV1eEDreL358M80Q/Cr54SNuFlKnj/ENPTjvN588fxSUA8DZL3 /vtOgAZBjmzfxc9uyEKkRcaMZ1HQkgJVu5TPOYitDJAm2VSv2ieKptBqYfxrjckzgeUF AJWpyHbFdqh++mdj18skgk2qh51irBn9KaJljJxTGwnpek06nzwpIrAk2irt5YFVoNCq uvOlQKpssGB+9s6GowNb1LTdfDtt6GGUOVZ3GGCQgYe8Reaqcs0VQ122IDFyS1a1jSYl EWsFYrdNd/648wmzDUAS8gqUSNxLUxjYfpmns5/GThTIFTCQZy2aYd4+n2Sv9EQgtG6H PA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2t3e46rrsj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 13 Jun 2019 00:07:08 -0700 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.1367.3; Thu, 13 Jun 2019 00:07:08 -0700 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.1367.3 via Frontend Transport; Thu, 13 Jun 2019 00:07:08 -0700 Received: from phanendra-system.marvell.com (unknown [10.28.11.20]) by maili.marvell.com (Postfix) with ESMTP id 20B1B3F703F; Thu, 13 Jun 2019 00:07:06 -0700 (PDT) From: To: CC: , , Phanendra Vukkisala Date: Thu, 13 Jun 2019 12:37:03 +0530 Message-ID: <1560409623-9118-1-git-send-email-pvukkisala@marvell.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-13_04:, , signatures=0 Subject: [dts] [PATCH] pmd: Support 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" From: Phanendra Vukkisala Vector mode processes frames in multiples of 4 Signed-off-by: Phanendra Vukkisala --- tests/TestSuite_pmd.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_pmd.py b/tests/TestSuite_pmd.py index f5df8d5..bc3f6a7 100644 --- a/tests/TestSuite_pmd.py +++ b/tests/TestSuite_pmd.py @@ -338,8 +338,8 @@ class TestPmd(TestCase,IxiaPacketGenerator): l4csum_error = self.stop_and_get_l4csum_errors() # Check the l4 checksum errors reported for Rx port - self.verify(1 == int(l4csum_error[1]), - "Wrong l4 checksum error count using rxfreet=%d (expected 1, reported %s)" % + self.verify(4 == int(l4csum_error[1]), + "Wrong l4 checksum error count using rxfreet=%d (expected 4, reported %s)" % (rxfreet_value, l4csum_error[1])) self.dut.send_expect("quit", "# ", 30) @@ -407,7 +407,7 @@ class TestPmd(TestCase,IxiaPacketGenerator): self.tester.scapy_foreground() self.tester.scapy_append('nutmac="%s"' % mac) - self.tester.scapy_append('sendp([Ether(dst=nutmac, src="52:00:00:00:00:00")/IP(len=%s)/UDP(%s)/Raw(load="\x50"*%s)], iface="%s")' % ( + self.tester.scapy_append('sendp([Ether(dst=nutmac, src="52:00:00:00:00:00")/IP(len=%s)/UDP(%s)/Raw(load="\x50"*%s)], iface="%s", count=4)' % ( load_size, checksum, padding, interface)) out = self.tester.scapy_execute() @@ -429,11 +429,11 @@ class TestPmd(TestCase,IxiaPacketGenerator): self.verify(self.pmdout.check_tx_bytes(p0tx_pkts, p1rx_pkts), "packet pass assert error, %d RX packets, %d TX packets" % (p1rx_pkts, p0tx_pkts)) - self.verify(p1rx_bytes == frame_size - 4, - "packet pass assert error, expected %d RX bytes, actual %d" % (frame_size - 4, p1rx_bytes)) + self.verify(p1rx_bytes == (frame_size - 4)*4, + "packet pass assert error, expected %d RX bytes, actual %d" % ((frame_size - 4)*4, p1rx_bytes)) - self.verify(self.pmdout.check_tx_bytes(p0tx_bytes, frame_size - 4), - "packet pass assert error, expected %d TX bytes, actual %d" % (frame_size - 4, p0tx_bytes)) + self.verify(self.pmdout.check_tx_bytes(p0tx_bytes, (frame_size - 4)*4), + "packet pass assert error, expected %d TX bytes, actual %d" % ((frame_size - 4)*4, p0tx_bytes)) return out -- 1.7.9.5