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 44AAFA05DC for ; Mon, 10 Jun 2019 08:09:18 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1000B1B9BA; Mon, 10 Jun 2019 08:09:18 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id D394B3DC for ; Mon, 10 Jun 2019 08:09:16 +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 x5A63ERY013512 for ; Sun, 9 Jun 2019 23:09:16 -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=ZhP4yJHRpe1yCXZZJQlHrFDooI9FCGbSOb95/+PU7rg=; b=UX6bE81Mkka+M4pqDOob6Y7FlEZYKrIlQoYTSjW5iURkqGcmYWxvCTiD4PcnVdCxxrBP 54ICuT5yLj0Obkqt1HGxvOjbUnITbukf0VFrV4APmGNhPnLH8tF4o5CeUysFDxA7PQbz tbuT073+dkLX3k5IVQQPcUtTqXD4wTCNZYTWFC41B9e3zN8gb2L5nLEfxTope6pafd4r 1iUoqvriWveH/NRwxeNFQQuitiJim70IiPVp4L38PnnzT5KKDUK1DGSv8KyUQ3tuN6X0 9Ph7fXTy6/WEwrGTpS9Q+qpJokCklPyX+8pIFzt60HraXq7icONLfLV4YHqQ0hGUVDk/ rg== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2t1hk6g0mj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 09 Jun 2019 23:09:15 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 9 Jun 2019 23:09:15 -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; Sun, 9 Jun 2019 23:09:15 -0700 Received: from localhost.marvell.com (unknown [10.28.10.195]) by maili.marvell.com (Postfix) with ESMTP id 168163F7040; Sun, 9 Jun 2019 23:09:13 -0700 (PDT) From: To: CC: , , Praneeth Reddy Date: Mon, 10 Jun 2019 11:39:11 +0530 Message-ID: <1560146951-31322-1-git-send-email-nareddy@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-10_03:, , signatures=0 Subject: [dts] [PATCH] TestSuite_dynamic_config.py : Modified send packet count 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" From: Praneeth Reddy In vector mode 4 packets are required. Modified packet count to 4 in all test cases. Signed-off-by: Praneeth Reddy --- tests/TestSuite_dynamic_config.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_dynamic_config.py b/tests/TestSuite_dynamic_config.py index 012421c..301f5b7 100644 --- a/tests/TestSuite_dynamic_config.py +++ b/tests/TestSuite_dynamic_config.py @@ -105,7 +105,7 @@ class TestDynamicConfig(TestCase): self.tester.scapy_foreground() self.tester.scapy_append( - 'sendp([Ether(dst="%s", src="52:00:00:00:00:00")/Raw(load="X"*26)], iface="%s")' % (destMac, itf)) + 'sendp([Ether(dst="%s", src="52:00:00:00:00:00")/Raw(load="X"*26)], iface="%s", count=4)' % (destMac, itf)) self.tester.scapy_execute() @@ -142,7 +142,7 @@ class TestDynamicConfig(TestCase): # check the packet increment self.verify(int(cur_rxpkt) == int(pre_rxpkt) - + 1, "1st packet increment check error") + + 4, "1st packet increment check error") # send one packet with the portid MAC address self.dynamic_config_send_packet(portid, self.dest) @@ -153,7 +153,7 @@ class TestDynamicConfig(TestCase): # check the packet increment self.verify(int(cur_rxpkt) == int(pre_rxpkt) - + 1, "2nd packet increment check error") + + 4, "2nd packet increment check error") def test_dynamic_config_disable_promiscuous(self): """ @@ -180,7 +180,7 @@ class TestDynamicConfig(TestCase): "show port stats %d" % self.dut_ports[1], "testpmd> ") cur_rxpkt = utils.regexp(out, "TX-packets: ([0-9]+)") self.verify(int(cur_rxpkt) == int( - pre_rxpkt) + 1, "2nd packet increment error") + pre_rxpkt) + 4, "2nd packet increment error") def test_dynamic_config_broadcast(self): """ @@ -198,7 +198,7 @@ class TestDynamicConfig(TestCase): out = self.dut.send_expect("show port stats %d" % self.dut_ports[1], "testpmd> ") cur_rxpkt = utils.regexp(out, "TX-packets: ([0-9]+)") - self.verify(int(cur_rxpkt) == 1, "not received broadcast packet") + self.verify(int(cur_rxpkt) == 4, "not received broadcast packet") self.dut.send_expect("clear port stats all", "testpmd> ") @@ -224,7 +224,7 @@ class TestDynamicConfig(TestCase): out = self.dut.send_expect("show port stats %d" % self.dut_ports[1], "testpmd> ") cur_rxpkt = utils.regexp(out, "TX-packets: ([0-9]+)") - self.verify(int(cur_rxpkt) == 1, "enable allmulti switch, not received allmulti packet") + self.verify(int(cur_rxpkt) == 4, "enable allmulti switch, not received allmulti packet") self.dut.send_expect("clear port stats all", "testpmd> ") self.dut.send_expect("set allmulti all off", "testpmd> ") @@ -257,7 +257,7 @@ class TestDynamicConfig(TestCase): # check the packet increment self.verify(int(cur_rxpkt) == int(pre_rxpkt) - + 1, "1st packet increment error") + + 4, "1st packet increment error") # send one packet with the portid MAC address self.dynamic_config_send_packet(portid, self.dest) @@ -268,7 +268,7 @@ class TestDynamicConfig(TestCase): # check the packet increment self.verify(int(cur_rxpkt) == int(pre_rxpkt) - + 1, "2nd packet increment error") + + 4, "2nd packet increment error") #self.dut.send_expect("quit", "# ", 30) -- 1.8.3.1