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 C2F97A05D3 for ; Tue, 23 Apr 2019 23:33:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B8FAD683E; Tue, 23 Apr 2019 23:33:33 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 588C24D27 for ; Tue, 23 Apr 2019 23:33:31 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Apr 2019 14:33:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,387,1549958400"; d="scan'208";a="145109433" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga003.jf.intel.com with ESMTP; 23 Apr 2019 14:33:30 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 23 Apr 2019 14:33:29 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 23 Apr 2019 14:33:29 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.164]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.153]) with mapi id 14.03.0415.000; Wed, 24 Apr 2019 05:33:27 +0800 From: "Tu, Lijuan" To: "Xu, Yanjie" , "dts@dpdk.org" CC: "Xu, Yanjie" Thread-Topic: [dts] [PATCH] modified hotplug tests Thread-Index: AQHU9nrnzcTtW5SqI0KjnWshJHmgWKZKSy6Q Date: Tue, 23 Apr 2019 21:33:27 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA65C01@SHSMSX101.ccr.corp.intel.com> References: <1555676776-233691-1-git-send-email-yanjie.xu@intel.com> In-Reply-To: <1555676776-233691-1-git-send-email-yanjie.xu@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2RmNDUwMjktMGZmNy00YTRkLTk3MDMtODc5N2E4OTExNjU5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiK0phT3dIbzZwXC8wUU1DQURwejYzSENWMFFTNCsyajloZkM4amxYd2psVDlTXC9yaURseFVXU3ZZdG1vaVBWcE1TIn0= 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] modified hotplug tests 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" Hi Yanjie, uio_pci_generic is still not supported, right?=20 > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xuyanjie > Sent: Friday, April 19, 2019 5:26 AM > To: dts@dpdk.org > Cc: Xu, Yanjie > Subject: [dts] [PATCH] modified hotplug tests >=20 > Signed-off-by: xuyanjie >=20 > diff --git a/test_plans/hotplug_test_plan.rst > b/test_plans/hotplug_test_plan.rst > index fb0b7e0..b065f46 100644 > --- a/test_plans/hotplug_test_plan.rst > +++ b/test_plans/hotplug_test_plan.rst > @@ -50,13 +50,13 @@ Prerequisites > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Assume DPDK managed at least one device for physical or none for virtual= . > -This feature only supports igb_uio now, for uio_pci_generic is > +This feature supports igb_uio, vfio. for uio_pci_generic is > on the way, will test it after enabled. >=20 > To run the testpmd application in linuxapp environment with 4 lcores, > 4 channels with other default parameters in interactive mode:: >=20 > - $ ./testpmd -c 0xf -n 4 -- -i > + $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i >=20 > Test ENV: >=20 > @@ -75,11 +75,11 @@ Test Case 1: port detach & attach for physical device= s > with igb_uio >=20 > 1. Start testpmd:: >=20 > - $ ./testpmd -c 0xf -n 4 -- -i > + $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i >=20 > 2. Bind new physical port to igb_uio(assume BDF 0000:02:00.0):: >=20 > - # ./tools/dpdk_nic_bind -b igb_uio 0000:02:00.0 > + # ./usertools/dpdk-devbind.py -b igb_uio 0000:02:00.0 >=20 > 3. Attach port 0:: >=20 > @@ -127,11 +127,11 @@ Test Case 2: port detach and attach for physical > devices with vfio >=20 > 1. Start testpmd:: >=20 > - $ ./testpmd -c 0xf -n 4 -- -i > + $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i >=20 > 2. Bind new physical port to igb_uio(assume BDF 0000:02:00.0):: >=20 > - # ./tools/dpdk_nic_bind -b vfio-pci 0000:02:00.0 > + # ./usertools/dpdk-devbind.py -b vfio-pci 0000:02:00.0 >=20 > 3. Attach port 0(assume BDF 0000:02:00.0):: >=20 > @@ -147,21 +147,20 @@ Test Case 2: port detach and attach for physical > devices with vfio >=20 > run "port close 0". >=20 > - run "port detach 0", check detach status(should fail as no detach > - support at the moment for vfio). > + run "port detach 0", check detach status(should ok). >=20 > Test Case 3: port detach & attach for physical devices with uio_pci_gene= ric > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > -This case should be enabled after uio_pci_generic enabled for DPDK > +This case should be enabled after uio_pci_generic enabled for DPDK (not > +implemented) >=20 > 1. Start testpmd:: >=20 > - $ ./testpmd -c 0xf -n 4 -- -i > + $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i >=20 > 2. Bind new physical port to igb_uio(assume BDF 0000:02:00.0):: >=20 > - # ./tools/dpdk_nic_bind -b uio_pci_generic 0000:02:00.0 > + # ./usertools/dpdk-devbind.py -b uio_pci_generic 0000:02:00.0 >=20 > 3. Attach port 0(assume BDF 0000:02:00.0):: >=20 > @@ -211,11 +210,11 @@ Bind driver before testpmd started, port will start > automatically >=20 > 1. Bind new physical port to igb_uio(assume BDF 0000:02:00.0):: >=20 > - # ./tools/dpdk_nic_bind -b uio_pci_generic 0000:02:00.0 > + # ./usertools/dpdk-devbind.py -b uio_pci_generic 0000:02:00.0 >=20 > 2. Start testpmd:: >=20 > - $ ./testpmd -c 0xf -n 4 -- -i > + $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i >=20 > 3. Check package forwarding when startup:: >=20 > @@ -254,7 +253,7 @@ Test Case 5: port detach & attach for virtual devices >=20 > 1. Start testpmd:: >=20 > - $ ./testpmd -c 0xf -n 4 -- -i > + $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i >=20 > 2. Attach virtual device as port 0:: >=20 > @@ -302,7 +301,7 @@ Test Case 6: port detach & attach for virtual devices= , > with "--vdev" >=20 > 1. Start testpmd, ""xxxx" is one workable ifname:: >=20 > - $ ./testpmd -c 0xf -n 4 --vdev "eth_pcap0,iface=3Dxxxx" -- -i > + $ ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 --vdev > + "eth_pcap0,iface=3Dxxxx" -- -i >=20 > 2. Check package forwarding after port start:: >=20 > -- > 2.7.4