From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2C12DA04EF; Mon, 1 Jun 2020 05:24:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1A4121D421; Mon, 1 Jun 2020 05:24:48 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 059631D421 for ; Mon, 1 Jun 2020 05:24:46 +0200 (CEST) IronPort-SDR: hMQ9kKWDw2/mBNxgNYRnDYUBUMp0K/7ohLXI2eiKvipmP7S3APLFTSprU81jfr5BF4w/nc024s 5y8fWSp1Esxg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2020 20:24:46 -0700 IronPort-SDR: AXA54nDihOo49GRXCqjz9atiIsv2vpg7y4HQhs7ITZtUajwWHu3yDWCCyT5WsBJcJfIzD7i960 Qeryx66zlz2Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,459,1583222400"; d="scan'208";a="256656647" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga007.fm.intel.com with ESMTP; 31 May 2020 20:24:46 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 31 May 2020 20:24:46 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 31 May 2020 20:24:45 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.85]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.185]) with mapi id 14.03.0439.000; Mon, 1 Jun 2020 11:24:43 +0800 From: "Tu, Lijuan" To: "Zeng, XiaoxiaoX" , "dts@dpdk.org" CC: "Zeng, XiaoxiaoX" Thread-Topic: [dts] [PATCH V1] tests/kernelpf_iavf:add_pvid add test steps Thread-Index: AQHWNXtA+jLAgCm2pkmieEsQAPMIMajDHWiw Date: Mon, 1 Jun 2020 03:24:43 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC5673E@SHSMSX101.ccr.corp.intel.com> References: <20200529141951.30482-1-xiaoxiaox.zeng@intel.com> In-Reply-To: <20200529141951.30482-1-xiaoxiaox.zeng@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.2.0.6 dlp-reaction: no-action 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/kernelpf_iavf:add_pvid add test steps 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 Zeng Xiaoxiao > Sent: Friday, May 29, 2020 10:20 PM > To: dts@dpdk.org > Cc: Zeng, XiaoxiaoX > Subject: [dts] [PATCH V1] tests/kernelpf_iavf:add_pvid add test steps >=20 > *.pf reset vlan, vf need reset >=20 > Signed-off-by: Zeng Xiaoxiao > --- > tests/TestSuite_kernelpf_iavf.py | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/tests/TestSuite_kernelpf_iavf.py > b/tests/TestSuite_kernelpf_iavf.py > index 5653d42..fd48fa2 100644 > --- a/tests/TestSuite_kernelpf_iavf.py > +++ b/tests/TestSuite_kernelpf_iavf.py > @@ -408,10 +408,15 @@ class TestKernelpfIavf(TestCase): > self.verify(len(receive_pkt) =3D=3D 1, "tester received wrong vl= an packet!!!") >=20 > # remove vlan > + self.vm_testpmd.execute_cmd("stop") > + self.vm_testpmd.execute_cmd("port stop all") > self.dut.send_expect("ip link set %s vf 0 vlan 0" % self.host_in= tf, "# ") > out =3D self.dut.send_expect("ip link show %s" % self.host_intf,= "# ") > self.verify("vlan %d" % random_vlan not in out, "Failed to remov= e pvid > on VF0") > # send packet without vlan > + self.vm_testpmd.execute_cmd("port reset 0") > + self.vm_testpmd.execute_cmd("port start all") > + self.vm_testpmd.execute_cmd("start") > out =3D self.send_and_getout(vlan=3D0, pkt_type=3D"UDP") > self.verify(self.vf_mac in out, "Not received packet without vla= n!!!") >=20 > -- > 2.17.1