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 7D3D1A00E6 for ; Fri, 19 Apr 2019 01:44:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4E5791BB27; Fri, 19 Apr 2019 01:44:24 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 7F0A31B111 for ; Fri, 19 Apr 2019 01:44:22 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Apr 2019 16:44:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,367,1549958400"; d="scan'208";a="137023584" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 18 Apr 2019 16:44:20 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 18 Apr 2019 16:44:20 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 18 Apr 2019 16:44:20 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.164]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.93]) with mapi id 14.03.0415.000; Fri, 19 Apr 2019 07:44:18 +0800 From: "Tu, Lijuan" To: "Zhang, YanX A" , "dts@dpdk.org" CC: "Zhang, YanX A" Thread-Topic: [dts] [PATCH V2] tests/vf_jumboframe:disable promisc mode to forbid misc packets Thread-Index: AQHU9YoRji9/INa4L0S2y4+NKAiToaZCliew Date: Thu, 18 Apr 2019 23:44:17 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA63E60@SHSMSX101.ccr.corp.intel.com> References: <1555552883-10338-1-git-send-email-yanx.a.zhang@intel.com> In-Reply-To: <1555552883-10338-1-git-send-email-yanx.a.zhang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTI3Yjg2YTUtZjQxOC00M2M5LTk0ZWUtYzc1MGViMmE1NDgzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaTlSYVdwc2tEWHRnbU9ySE5TMEQ2Yk5ua2IxcmZGcndMbXROYkVCMG9SNUpRK2RXUTkzZTFROVBIOGFOTitoMyJ9 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/vf_jumboframe:disable promisc mode to forbid misc packets 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhang,yan > Sent: Wednesday, April 17, 2019 7:01 PM > To: dts@dpdk.org > Cc: Zhang, YanX A > Subject: [dts] [PATCH V2] tests/vf_jumboframe:disable promisc mode to > forbid misc packets >=20 > Because some miscellaneous packets may appearing on the receiving port, > so use command "set promisc all off" to forbid them >=20 > Signed-off-by: zhang,yan > --- > tests/TestSuite_vf_jumboframe.py | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/tests/TestSuite_vf_jumboframe.py > b/tests/TestSuite_vf_jumboframe.py > index 32f89d7..dc16479 100644 > --- a/tests/TestSuite_vf_jumboframe.py > +++ b/tests/TestSuite_vf_jumboframe.py > @@ -212,6 +212,7 @@ class TestVfJumboFrame(TestCase): > self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=3D%d --p= ort- > topology=3Dloop --tx-offloads=3D0x8000" % (ETHER_STANDARD_MTU)) >=20 > self.vm_testpmd.execute_cmd("set fwd mac") > + self.vm_testpmd.execute_cmd("set promisc all off") > self.vm_testpmd.execute_cmd("start") >=20 > self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1) @@ -232,6 > +233,7 @@ class TestVfJumboFrame(TestCase): > self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=3D%d --p= ort- > topology=3Dloop --tx-offloads=3D0x8000" % (ETHER_JUMBO_FRAME_MTU)) >=20 > self.vm_testpmd.execute_cmd("set fwd mac") > + self.vm_testpmd.execute_cmd("set promisc all off") > self.vm_testpmd.execute_cmd("start") >=20 > self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1) @@ -252,6 > +254,7 @@ class TestVfJumboFrame(TestCase): > self.vm_testpmd.start_testpmd("Default", "--port-topology=3Dloop= --tx- > offloads=3D0x8000" ) >=20 > self.vm_testpmd.execute_cmd("set fwd mac") > + self.vm_testpmd.execute_cmd("set promisc all off") > self.vm_testpmd.execute_cmd("start") >=20 > # On igb, for example i350, refer to :DPDK-1117 @@ -280,6 +283,7= @@ > class TestVfJumboFrame(TestCase): > self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=3D%d --p= ort- > topology=3Dloop --tx-offloads=3D0x8000" % (ETHER_JUMBO_FRAME_MTU)) >=20 > self.vm_testpmd.execute_cmd("set fwd mac") > + self.vm_testpmd.execute_cmd("set promisc all off") > self.vm_testpmd.execute_cmd("start") >=20 > self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1) @@ - > 301,6 +305,7 @@ class TestVfJumboFrame(TestCase): > self.vm_testpmd.start_testpmd("Default", "--max-pkt-len=3D%d --p= ort- > topology=3Dloop --tx-offloads=3D0x8000" % (ETHER_JUMBO_FRAME_MTU)) >=20 > self.vm_testpmd.execute_cmd("set fwd mac") > + self.vm_testpmd.execute_cmd("set promisc all off") > self.vm_testpmd.execute_cmd("start") >=20 > # On 1G NICs, when the jubmo frame MTU set as 9000, the software > adjust it to 9004. > -- > 2.17.2