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 120C5A05D3 for ; Mon, 25 Mar 2019 03:25:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D6D4C11A4; Mon, 25 Mar 2019 03:25:04 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 97C2923D for ; Mon, 25 Mar 2019 03:25:03 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Mar 2019 19:25:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="217219911" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 24 Mar 2019 19:25:01 -0700 From: yaobing To: dts@dpdk.org Cc: yaobing Date: Mon, 25 Mar 2019 10:29:01 +0800 Message-Id: <1553480941-81103-1-git-send-email-bingx.y.yao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] tests/pmdrss_hash:forbidden packet 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" V1: There will be some miscellaneous packetss appearing on the receiving port, and setting up command "set promisc all off" to forbidden packets V2: conflict with patch:[dts] [PATCH V2] tests/pmdrss_hash:change hard code Signed-off-by: yaobing --- tests/TestSuite_pmdrss_hash.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/TestSuite_pmdrss_hash.py b/tests/TestSuite_pmdrss_hash.py index dd22f91..283a545 100644 --- a/tests/TestSuite_pmdrss_hash.py +++ b/tests/TestSuite_pmdrss_hash.py @@ -484,6 +484,7 @@ class TestPmdrssHash(TestCase): for iptype, rsstype in iptypes.items(): self.dut.send_expect("set verbose 8", "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") + self.dut.send_expect("set promisc all off", "testpmd> ") self.dut.send_expect( "set nbcore %d" % (queue + 1), "testpmd> ") @@ -521,6 +522,7 @@ class TestPmdrssHash(TestCase): for iptype, rsstype in iptypes.items(): self.dut.send_expect("set verbose 8", "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") + self.dut.send_expect("set promisc all off", "testpmd> ") self.dut.send_expect( "set nbcore %d" % (queue + 1), "testpmd> ") @@ -566,6 +568,7 @@ class TestPmdrssHash(TestCase): self.logger.info("***********************%s rss test********************************" % iptype) self.dut.send_expect("set verbose 8", "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") + self.dut.send_expect("set promisc all off", "testpmd> ") self.dut.send_expect( "set nbcore %d" % (queue + 1), "testpmd> ") @@ -604,6 +607,7 @@ class TestPmdrssHash(TestCase): for iptype, rsstype in iptypes.items(): self.dut.send_expect("set verbose 8", "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") + self.dut.send_expect("set promisc all off", "testpmd> ") self.dut.send_expect( "set nbcore %d" % (queue + 1), "testpmd> ") @@ -634,6 +638,7 @@ class TestPmdrssHash(TestCase): "NIC Unsupported: " + str(self.nic)) self.dut.send_expect("./%s/app/testpmd -c %s -n %d -- -i" % (self.target, self.coremask, self.dut.get_memory_channels()), "testpmd> ", 120) + self.dut.send_expect("set promisc all off", "testpmd> ") out = self.dut.send_expect("create bonded device 3 0", "testpmd> ", 30) bond_device_id = int(re.search("port \d+", out).group().split(" ")[-1].strip()) -- 2.17.2