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 3FFDEA00E6 for ; Mon, 18 Mar 2019 03:59:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F1687152A; Mon, 18 Mar 2019 03:59:54 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 09D3B201 for ; Mon, 18 Mar 2019 03:59:53 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Mar 2019 19:59:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,491,1544515200"; d="scan'208";a="152588251" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 17 Mar 2019 19:59:52 -0700 From: yaobing To: dts@dpdk.org Cc: yaobing Date: Mon, 18 Mar 2019 11:03:51 +0800 Message-Id: <1552878231-39129-1-git-send-email-bingx.y.yao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] 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" There will be some miscellaneous packetss appearing on the receiving port, and setting up command "set promisc all off" to forbidden packets. 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 60c9819..2daca36 100644 --- a/tests/TestSuite_pmdrss_hash.py +++ b/tests/TestSuite_pmdrss_hash.py @@ -483,6 +483,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> ") @@ -520,6 +521,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> ") @@ -565,6 +567,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> ") @@ -603,6 +606,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> ") @@ -633,6 +637,7 @@ class TestPmdrssHash(TestCase): "NIC Unsupported: " + str(self.nic)) self.dut.send_expect("./%s/app/testpmd -c f -n 4 -- -i" % self.target, "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