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 65963A05D3 for ; Mon, 25 Mar 2019 06:13:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2125E2B9A; Mon, 25 Mar 2019 06:13:32 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id D44A623D for ; Mon, 25 Mar 2019 06:13:30 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Mar 2019 22:13:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,256,1549958400"; d="scan'208";a="125574118" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga007.jf.intel.com with ESMTP; 24 Mar 2019 22:13:29 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 24 Mar 2019 22:13:29 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 24 Mar 2019 22:13:29 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.163]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.252]) with mapi id 14.03.0415.000; Mon, 25 Mar 2019 13:13:27 +0800 From: "Zhu, WenhuiX" To: "Yao, BingX Y" , "dts@dpdk.org" CC: "Yao, BingX Y" Thread-Topic: [dts] [PATCH V2] tests/pmdrss_hash:forbidden packet Thread-Index: AQHU4rICcoik+ZW8PE26/hUpEPcSuKYbzXMw Date: Mon, 25 Mar 2019 05:13:26 +0000 Message-ID: References: <1553480941-81103-1-git-send-email-bingx.y.yao@intel.com> In-Reply-To: <1553480941-81103-1-git-send-email-bingx.y.yao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Tested-by: Zhu, WenhuiX -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yaobing Sent: Monday, March 25, 2019 10:29 AM To: dts@dpdk.org Cc: Yao, BingX Y Subject: [dts] [PATCH V2] tests/pmdrss_hash:forbidden packet 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.p= y 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> ") =20 @@ -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> ") =20 @@ -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> ") =20 @@ -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> ") =20 @@ -634,6 +638,7 @@ class TestPmdrssHash(TestCase): "NIC Unsupported: " + str(self.nic)) =20 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 =3D self.dut.send_expect("create bonded device 3 0", "testpmd>= ", 30) bond_device_id =3D int(re.search("port \d+", out).group().split(" = ")[-1].strip()) =20 -- 2.17.2