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 91A23A0555; Wed, 19 Feb 2020 09:28:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 771111BF9B; Wed, 19 Feb 2020 09:28:15 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id A37D01BF87 for ; Wed, 19 Feb 2020 09:28:13 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2020 00:28:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,459,1574150400"; d="scan'208";a="434400890" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga005.fm.intel.com with ESMTP; 19 Feb 2020 00:28:02 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 19 Feb 2020 00:28:02 -0800 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 19 Feb 2020 16:27:26 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Wed, 19 Feb 2020 16:27:26 +0800 From: "Wang, Yinan" To: "Min, JiaqiX" , "dts@dpdk.org" CC: "Min, JiaqiX" Thread-Topic: [dts] [PATCH v1] test_plans/vf_interrupt_pmd: add fvl multi queue interrupt Thread-Index: AQHV4llPdlRgrPobiU6lk67DbDRQeKgiOBLA Date: Wed, 19 Feb 2020 08:27:26 +0000 Message-ID: References: <20200213102029.142256-1-jiaqix.min@intel.com> In-Reply-To: <20200213102029.142256-1-jiaqix.min@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH v1] test_plans/vf_interrupt_pmd: add fvl multi queue interrupt 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" Acked-by: Wang, Yinan > -----Original Message----- > From: dts On Behalf Of Jiaqi Min > Sent: 2020=1B$BG/=1B(B2=1B$B7n=1B(B13=1B$BF|=1B(B 18:20 > To: dts@dpdk.org > Cc: Min, JiaqiX > Subject: [dts] [PATCH v1] test_plans/vf_interrupt_pmd: add fvl multi queu= e > interrupt >=20 > add multi queue interrupt for fvl >=20 > Signed-off-by: Jiaqi Min > --- > test_plans/vf_interrupt_pmd_test_plan.rst | 35 ++++++++++++++++++++++- > 1 file changed, 34 insertions(+), 1 deletion(-) >=20 > diff --git a/test_plans/vf_interrupt_pmd_test_plan.rst > b/test_plans/vf_interrupt_pmd_test_plan.rst > index 8f91b14..db05cb4 100644 > --- a/test_plans/vf_interrupt_pmd_test_plan.rst > +++ b/test_plans/vf_interrupt_pmd_test_plan.rst > @@ -190,4 +190,37 @@ Test Case4: VF interrupt pmd in VM with vfio-pci >=20 > 7. Check if threads on core 2 have returned to sleep mode:: >=20 > - L3FWD_POWER: lcore 2 sleeps until interrupt triggers > \ No newline at end of file > + L3FWD_POWER: lcore 2 sleeps until interrupt triggers > + > +Test Case5: Check Interrupt for VF with 4 queues and vfio driver on > +i40e > +=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 > + > +1. Generate NIC VF, then bind it to vfio drvier:: > + > + echo 1 > /sys/bus/pci/devices/0000\:04\:00.0/sriov_numvfs > + > + modprobe vfio-pci > + usertools/dpdk-devbind.py --bind=3Dvfio-pci 0000:04:10.0(vf_pci) > + > + Notice: If your PF is kernel driver, make sure PF link is up when you= r start > testpmd on VF. > + > +2. Start l3fwd-power with VF:: > + > + examples/l3fwd-power/build/l3fwd-power -c 3f -n 4 -m 2048 -- -P -p 0= x1 > --config=3D"(0,0,1),(0,1,2),(0,2,3),(0,3,4)" > + > +3. Send packet with packet generator to the pf NIC, check that all threa= ds > waked up:: > + > + for x in range(0,10): > + sendp([Ether(dst=3D'vf_mac')/IP(src=3D'2.1.1.' + > + str(x),dst=3D'2.1.1.5')/UDP()/Raw(load=3D'XXXXXXXXXXXXXXXXXX')], > + iface=3D"tester_intf") > + > + L3FWD_POWER: lcore 1 is waked up from rx interrupt on port 0 queue 0 > + L3FWD_POWER: lcore 2 is waked up from rx interrupt on port 0 queue 1 > + L3FWD_POWER: lcore 3 is waked up from rx interrupt on port 0 queue 2 > + L3FWD_POWER: lcore 4 is waked up from rx interrupt on port 0 queue > + 3 > + > +4. Check if threads on all cores have returned to sleep mode:: > + > + L3FWD_POWER: lcore 1 sleeps until interrupt triggers > + L3FWD_POWER: lcore 2 sleeps until interrupt triggers > + L3FWD_POWER: lcore 3 sleeps until interrupt triggers > + L3FWD_POWER: lcore 4 sleeps until interrupt triggers > -- > 2.17.1