From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id B2B24DE0 for ; Tue, 10 Feb 2015 09:54:54 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 10 Feb 2015 00:51:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,549,1418112000"; d="scan'208";a="683549453" Received: from kmsmsx153.gar.corp.intel.com ([172.21.73.88]) by orsmga002.jf.intel.com with ESMTP; 10 Feb 2015 00:54:52 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by KMSMSX153.gar.corp.intel.com (172.21.73.88) with Microsoft SMTP Server (TLS) id 14.3.195.1; Tue, 10 Feb 2015 16:54:49 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.192]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.209]) with mapi id 14.03.0195.001; Tue, 10 Feb 2015 16:54:48 +0800 From: "Qiu, Michael" To: Tetsuya Mukawa , "dts@dpdk.org" Thread-Topic: [PATCH] test_plan: add hotplug_test_plan Thread-Index: AQHQPsTXSPmZsjvrL02oMBr5A1mZQw== Date: Tue, 10 Feb 2015 08:54:47 +0000 Message-ID: <533710CFB86FA344BFBF2D6802E60286CE7941@SHSMSX101.ccr.corp.intel.com> References: <1422866813-23729-1-git-send-email-michael.qiu@intel.com> <533710CFB86FA344BFBF2D6802E60286CE7206@SHSMSX101.ccr.corp.intel.com> <54D979EA.6010403@igel.co.jp> 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 Cc: "Iremonger, Bernard" Subject: Re: [dts] [PATCH] test_plan: add hotplug_test_plan 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: , X-List-Received-Date: Tue, 10 Feb 2015 08:54:55 -0000 On 2/10/2015 11:24 AM, Tetsuya Mukawa wrote:=0A= > Hi Michael,=0A= >=0A= > On 2015/02/09 22:13, Qiu, Michael wrote:=0A= >> [+cc] Bernard=0A= >>=0A= >> Hi, Bernard and Tetsuya=0A= >>=0A= >> Would you have time to review this test plan?=0A= >> Your comments are very important.=0A= >>=0A= >> Thanks,=0A= >> Michael=0A= >> On 2/2/2015 4:47 PM, Qiu, Michael wrote:=0A= =0A= [...]=0A= =0A= >> +=0A= >> +Prerequisites=0A= >> +-------------=0A= >> +Assume DPDK managerd at least one device for physical or none for virtu= al.=0A= > "managerd" may be typo.=0A= >=0A= >>> +This feature only supports igb_uio now, for uio_pci_generic is=0A= >>> +on the way, will test it after enabled.=0A= >>> +=0A= >>> +To run the testpmd application in linuxapp environment with 4 lcores,= =0A= >>> +4 channels with other default parameters in interactive mode.=0A= >>> +=0A= >>> + $ ./testpmd -c 0xf -n 4 -- -i=0A= >>> +=0A= >>> +Test ENV:=0A= >>> +=0A= >>> +All test case can be run in 32bit and 64bit platform.=0A= >>> +=0A= >>> +All os can be support, like fedora, ubuntu, rhel, suse, but freebsd wi= ll=0A= >>> +not include as hotplug has no plan to support that platform=0A= >>> +=0A= >>> +All kernel version(start from 2.6) can be support, for vfio need kerne= l=0A= >>> + version greater than 3.6.=0A= >>> +=0A= >>> +Virtulization support: KVM/VMware/Xen, container is in the roadmap=0A= > "Virtulization" may be typo.=0A= >=0A= >>> +=0A= >>> +----------------------------------------------------------------------= ---------=0A= >>> +Test Case 1: port dettach & attach for physical devices with igb_uio= =0A= >>> +----------------------------------------------------------------------= ---------=0A= >>> +1. run "port attach 0000:02:00.0",=0A= >>> + assume the physical devices is BDF is 0000:02:00.0=0A= > Above sentence may be typo.=0A= =0A= [...]=0A= =0A= > Usually before submitting hotplug patches, I test almost same as above,= =0A= > and additionally below cases.=0A= >=0A= > ---------------------------=0A= > Test Re-attach=0A= > ---------------------------=0A= > - testpmd> attach=0A= > - testpmd> port start=0A= > - testpmd> start=0A= > - testpmd> stop=0A= > - testpmd> port stop=0A= > - testpmd> port close=0A= > - testpmd> port detach=0A= > - testpmd> port attach=0A= > - testpmd> port start=0A= > - testpmd> start=0A= > - testpmd> stop=0A= > (To check if re-attached port works fine.)=0A= =0A= This will be added for every test case=0A= =0A= > ---------------------------=0A= > start testpmd with "--vdev" option, and detach.=0A= > ---------------------------=0A= >=0A= > - ./testpmd -c 0xf -n 4 --vdev "eth_pcap0,iface=3D" -- -i=0A= > - testpmd> start=0A= > - testpmd> stop=0A= > - testpmd> port stop=0A= > - testpmd> port close=0A= > - testpmd> port detach=0A= > (To make sure if we can detach the port)=0A= >=0A= > ---------------------------=0A= > start testpmd with an attached physical NIC port, and detach.=0A= > ---------------------------=0A= > - ./dpdk_nic_bind -b igb_uio =0A= > - ./testpmd -c 0xf -n 4 -- -i=0A= > - testpmd> start=0A= > - testpmd> stop=0A= > - testpmd> port stop=0A= > - testpmd> port close=0A= > - testpmd> port detach=0A= > (To make sure if we can detach the port)=0A= =0A= I will add both.=0A= =0A= Thanks,=0A= Michael=0A= > How about adding such cases?=0A= >=0A= > Thanks,=0A= > Tetsuya=0A= >=0A= >=0A= >=0A= >=0A= >=0A= >=0A= =0A=