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 50573A0542; Thu, 13 Feb 2020 11:35:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 09AA82BF4; Thu, 13 Feb 2020 11:35:09 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 4EEE4137D for ; Thu, 13 Feb 2020 11:35:07 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Feb 2020 02:35:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,436,1574150400"; d="scan'208";a="347705592" Received: from intel.sh.intel.com ([10.239.255.137]) by fmsmga001.fm.intel.com with ESMTP; 13 Feb 2020 02:35:04 -0800 From: Jiaqi Min To: dts@dpdk.org Cc: Jiaqi Min Date: Thu, 13 Feb 2020 10:20:29 +0000 Message-Id: <20200213102029.142256-1-jiaqix.min@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [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" add multi queue interrupt for fvl Signed-off-by: Jiaqi Min --- test_plans/vf_interrupt_pmd_test_plan.rst | 35 ++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) 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 7. Check if threads on core 2 have returned to sleep mode:: - 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 +======================================================================== + +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=vfio-pci 0000:04:10.0(vf_pci) + + Notice: If your PF is kernel driver, make sure PF link is up when your start testpmd on VF. + +2. Start l3fwd-power with VF:: + + examples/l3fwd-power/build/l3fwd-power -c 3f -n 4 -m 2048 -- -P -p 0x1 --config="(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 threads waked up:: + + for x in range(0,10): + sendp([Ether(dst='vf_mac')/IP(src='2.1.1.' + str(x),dst='2.1.1.5')/UDP()/Raw(load='XXXXXXXXXXXXXXXXXX')], iface="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