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 8DAA1A0524; Tue, 25 Feb 2020 09:59:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 57EC01BF8D; Tue, 25 Feb 2020 09:59:38 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id E7BFFB62 for ; Tue, 25 Feb 2020 09:59:36 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2020 00:59:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,483,1574150400"; d="scan'208";a="255886931" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 25 Feb 2020 00:59:34 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 25 Feb 2020 00:59:01 -0800 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 25 Feb 2020 00:59:01 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.138]) with mapi id 14.03.0439.000; Tue, 25 Feb 2020 16:58:58 +0800 From: "Tu, Lijuan" To: "He, Zhiwei" , "Min, JiaqiX" , "dts@dpdk.org" CC: "Min, JiaqiX" , "He, Zhiwei" Thread-Topic: [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for ixgbe Thread-Index: AQHV5v2nngWvV0N2E0a/SFueEP38oagq+7SAgACp6ZA= Date: Tue, 25 Feb 2020 08:58:57 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBCDFAF@SHSMSX101.ccr.corp.intel.com> References: <20200219080318.45130-1-jiaqix.min@intel.com> <09777F12A863964D9F4AE780D4FEA3E83E7446DC@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <09777F12A863964D9F4AE780D4FEA3E83E7446DC@SHSMSX104.ccr.corp.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/vf_daemon: add vf jumbo frame test for ixgbe 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 He, Zhiwei > Sent: Tuesday, February 25, 2020 2:51 PM > To: Min, JiaqiX ; dts@dpdk.org > Cc: Min, JiaqiX ; He, Zhiwei > Subject: Re: [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test fo= r > ixgbe >=20 > Acked-by Zhiwei.He >=20 > > -----Original Message----- > > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Jiaqi Min > > Sent: Wednesday, February 19, 2020 4:03 PM > > To: dts@dpdk.org > > Cc: Min, JiaqiX > > Subject: [dts] [PATCH V1] tests/vf_daemon: add vf jumbo frame test for > > ixgbe > > > > add ixgbe vf jumbo frame test case > > > > Signed-off-by: Jiaqi Min > > --- > > conf/vf_daemon.cfg | 44 +++++++++++++++++++++++++++++++ > > tests/TestSuite_vf_daemon.py | 51 > > ++++++++++++++++++++++++++++++++++++ > > 2 files changed, 95 insertions(+) > > create mode 100644 conf/vf_daemon.cfg > > > > diff --git a/conf/vf_daemon.cfg b/conf/vf_daemon.cfg new file mode > > 100644 index 0000000..fe762f8 > > --- /dev/null > > +++ b/conf/vf_daemon.cfg > > @@ -0,0 +1,44 @@ > > +# Configuration sample: sriov_kvm.cfg [vm0] cpu =3D > > + model=3Dhost,number=3D4,cpupin=3D5 6 7 8; disk =3D > > + > > +file=3D/storage/vm- > > image/vm0.img,opt_format=3Dqcow2,opt_if=3Dvirtio,opt_index > > +=3D0,opt_media=3Ddisk; > > +mem =3D > > + size=3D10250; > > +login =3D > > + user=3Droot,password=3Dtester; > > +# net option is not necessary for libvirt, comment out below 2 lines > > +if using libvirt net =3D > > + type=3Dnic,opt_vlan=3D0; > > + type=3Duser,opt_vlan=3D0; > > +qga =3D > > + enable=3Dyes; > > +# vnc option is not supported by libvirt yet, comment out below 2 > > +lines if using libvirt vnc =3D > > + displayNum=3D1; > > +# daemon option is not supported by libvirt yet, comment out below 2 > > +lines if using libvirt daemon =3D > > + enable=3Dyes; > > + > > +[vm1] > > +cpu =3D > > + model=3Dhost,number=3D4,cpupin=3D14 15 16 17; disk =3D > > + > > +file=3D/storage/vm- > > image/vm0.img_copy.img,opt_format=3Dqcow2,opt_if=3Dvirtio, > > +opt_index=3D0,opt_media=3Ddisk; > > +mem =3D > > + size=3D10250; > > +login =3D > > + user=3Droot,password=3Dtester; > > +# net option is not necessary for libvirt, comment out below 2 lines > > +if using libvirt net =3D > > + type=3Dnic,opt_vlan=3D0; > > + type=3Duser,opt_vlan=3D0; > > +qga =3D > > + enable=3Dyes; > > +# vnc option is not supported by libvirt yet, comment out below 2 > > +lines if using libvirt vnc =3D > > + displayNum=3D2; > > +# daemon option is not supported by libvirt yet, comment out below 2 > > +lines if using libvirt daemon =3D > > + enable=3Dyes; > > diff --git a/tests/TestSuite_vf_daemon.py > > b/tests/TestSuite_vf_daemon.py index b91de9e..f01f1db 100644 > > --- a/tests/TestSuite_vf_daemon.py > > +++ b/tests/TestSuite_vf_daemon.py > > @@ -705,6 +705,57 @@ class TestVfDaemon(TestCase): > > self.vm0_testpmd.execute_cmd('vlan set strip off 0') > > self.vm0_testpmd.execute_cmd('vlan set filter off 0') > > > > + def test_ixgbe_vf_jumboframe(self): > > + """ > > + Enable jumbo frame for VF by configuring DPDK PF. > > + """ > > + self.tester.send_expect("ifconfig %s mtu 9000" % self.tester_i= ntf, "#") > > + self.check_vf_link_status() > > + time.sleep(10) > > + self.vf0_mac =3D self.vm0_testpmd.get_port_mac(0) > > + > > + self.vm0_testpmd.execute_cmd('set verbose 1') > > + self.vm0_testpmd.execute_cmd('start') > > + pktsize =3D random.randint(1500, 9000) > > + out =3D self.send_and_pmdout(self.vf0_mac, 0, pktsize) > > + self.vm0_testpmd.execute_cmd('stop') > > + self.verify("received" not in out, > > + "Failed to receive this length packet!!!") > > + > > + self.vm0_testpmd.execute_cmd('port stop all') > > + self.vm0_testpmd.execute_cmd('port config mtu 0 %s' % > (pktsize+100)) > > + self.vm0_testpmd.execute_cmd('port start all') > > + self.vm0_testpmd.execute_cmd('start') > > + out =3D self.send_and_pmdout(self.vf0_mac, 0, pktsize) > > + self.vm0_testpmd.execute_cmd('stop') > > + self.verify("received" in out, > > + "Failed to receive this length packet!!!") > > + > > + self.vm0_testpmd.execute_cmd('start') > > + out =3D self.send_and_pmdout(self.vf0_mac, 0, pktsize+200) > > + self.vm0_testpmd.execute_cmd('stop') > > + self.verify("received" not in out, > > + "Failed to receive this length packet!!!") > > + > > + self.vm0_testpmd.quit() > > + self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--port- > > topology=3Dchained') > > + self.vm0_testpmd.execute_cmd('set verbose 1') > > + self.vm0_testpmd.execute_cmd('start') > > + out =3D self.send_and_pmdout(self.vf0_mac, 0, pktsize) > > + self.vm0_testpmd.execute_cmd('stop') > > + self.verify("received" in out, > > + "Failed to receive this length packet!!!") > > + > > + self.vm0_testpmd.execute_cmd('start') > > + out =3D self.send_and_pmdout(self.vf0_mac, 0, pktsize+200) > > + self.vm0_testpmd.execute_cmd('stop') > > + self.verify("received" not in out, > > + "Failed to receive this length packet!!!") > > + > > + self.vm0_testpmd.quit() > > + self.dut_testpmd.quit() > > + self.tester.send_expect("ifconfig %s mtu 1500" % > > + self.tester_intf, "#") > > + > > def test_stats_show_clear(self): > > """ > > Show and clear statistics for a VF from PF > > -- > > 2.17.1