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 8EF85A05FE for ; Tue, 19 Mar 2019 03:58:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7B5952B9E; Tue, 19 Mar 2019 03:58:14 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id EF4CD1DBD for ; Tue, 19 Mar 2019 03:58:12 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Mar 2019 19:58:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,496,1544515200"; d="scan'208";a="135201395" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga003.jf.intel.com with ESMTP; 18 Mar 2019 19:58:11 -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; Mon, 18 Mar 2019 19:58:11 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 18 Mar 2019 19:58:11 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.163]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.10]) with mapi id 14.03.0415.000; Tue, 19 Mar 2019 10:57:59 +0800 From: "Zhu, WenhuiX" To: "Yao, BingX Y" , "dts@dpdk.org" CC: "Yao, BingX Y" Thread-Topic: [dts] [PATCH V1] tests/pmdrss_hash:forbidden packet Thread-Index: AQHU3Ta9iP1OTc+WqUusk+WCr4QmQaYSRJ0A Date: Tue, 19 Mar 2019 02:57:58 +0000 Message-ID: References: <1552878231-39129-1-git-send-email-bingx.y.yao@intel.com> In-Reply-To: <1552878231-39129-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 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" Tested-by: Zhu, WenhuiX -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yaobing Sent: Monday, March 18, 2019 11:04 AM To: dts@dpdk.org Cc: Yao, BingX Y Subject: [dts] [PATCH V1] tests/pmdrss_hash:forbidden packet There will be some miscellaneous packetss appearing on the receiving port, = and setting up command "set promisc all off"=20 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.p= y 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> ") =20 @@ -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> ") =20 @@ -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> ") =20 @@ -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> ") =20 @@ -633,6 +637,7 @@ class TestPmdrssHash(TestCase): "NIC Unsupported: " + str(self.nic)) =20 self.dut.send_expect("./%s/app/testpmd -c f -n 4 -- -i" % self.tar= get, "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