From patchwork Tue Oct 18 05:57:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 118352 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 33330A0560; Tue, 18 Oct 2022 08:47:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E4384021E; Tue, 18 Oct 2022 08:47:41 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 6575B4021D for ; Tue, 18 Oct 2022 08:47:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666075659; x=1697611659; h=from:to:cc:subject:date:message-id; bh=7W1Smix1UM/girRKuTIjhRhMgH4RART/0f84O5/+2z4=; b=l73YoOGL8HZpto3c9fSgVGzbgM45XNZBHWFjntIv06/Hs/2Z5sIU4nsM HYeFaxxiGUx9/6VeZxF56U65yoEdvH9QD2Rj6sSTbFazqMabnmHZ6gcbz H2sQ65YL2g54JuX8VXmPTpOL9a4r/TaBytwRekmtBLS3i1hq49dPpEyBX rEOv4LBSmZ8MGUMOOJrOaoCCLSDIYRDBHUud0lmHh1G6xE4p3hiujknDo +UHjQrtR8GzXJYVaWS6c0geSppr8gaIYaH7+WKFpUI35zB7Z1DVJhHWMp 8854OdE/plJN5glK/HaCjJTm78pgGMeFqZNnuwRmYj040uTryAamReHOZ g==; X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="392319880" X-IronPort-AV: E=Sophos;i="5.95,193,1661842800"; d="scan'208";a="392319880" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2022 23:47:39 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="628589546" X-IronPort-AV: E=Sophos;i="5.95,193,1661842800"; d="scan'208";a="628589546" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2022 23:47:37 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1] tests/vf_interrupt_pmd: delete igb_uio case Date: Tue, 18 Oct 2022 01:57:04 -0400 Message-Id: <20221018055704.51890-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 Delete igb_uio case: nic_interrupt_PF_igb_uio Signed-off-by: Lingli Chen --- test_plans/vf_interrupt_pmd_test_plan.rst | 40 +++++------------------ tests/TestSuite_vf_interrupt_pmd.py | 24 -------------- 2 files changed, 8 insertions(+), 56 deletions(-) diff --git a/test_plans/vf_interrupt_pmd_test_plan.rst b/test_plans/vf_interrupt_pmd_test_plan.rst index b7cdeb3e..9c917f9a 100644 --- a/test_plans/vf_interrupt_pmd_test_plan.rst +++ b/test_plans/vf_interrupt_pmd_test_plan.rst @@ -36,11 +36,11 @@ Modify the DPDK-l3fwd-power source code and recompile the l3fwd-power:: meson configure -Dexamples=l3fwd-power x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc -Support igb_uio and vfio driver, if used vfio, kernel need 3.6+ and enable vt-d +Support vfio driver, if used vfio, kernel need 3.6+ and enable vt-d in bios. When used vfio, requested to insmod two drivers vfio and vfio-pci. -Test Case1: Check Interrupt for PF with vfio driver on ixgbe and i40e -===================================================================== +Test Case1: Check Interrupt for PF with vfio driver +=================================================== 1. Bind NIC PF to vfio-pci drvier:: @@ -62,32 +62,8 @@ Test Case1: Check Interrupt for PF with vfio driver on ixgbe and i40e L3FWD_POWER: lcore 2 sleeps until interrupt triggers -Test Case2: Check Interrupt for PF with igb_uio driver on ixgbe and i40e -======================================================================== - -1. Bind NIC PF to igb_uio drvier:: - - modprobe uio; - insmod x86_64-native-linuxapp-gcc/kmod/igb_uio.ko; - - ./usertools/dpdk-devbind.py --bind=igb_uio 0000:04:00.0 - -2. start l3fwd-power with PF:: - - ./x86_64-native-linuxapp-gcc/examples/dpdk-l3fwd-power -l 1-3 -n 4 -- -P -p 0x01 --config '(0,0,2)' - -3. Send packet with packet generator to the pf NIC, check that thread core2 waked up:: - - sendp([Ether(dst='pf_mac')/IP()/UDP()/Raw(load='XXXXXXXXXXXXXXXXXX')], iface="tester_intf") - - L3FWD_POWER: lcore 2 is waked up from rx interrupt on port 0 queue 0 - -4. Check if threads on core 2 have returned to sleep mode:: - - L3FWD_POWER: lcore 2 sleeps until interrupt triggers - -Test Case3: Check Interrupt for VF with vfio driver on ixgbe and i40e -===================================================================== +Test Case2: Check Interrupt for VF with vfio driver +=================================================== 1. Generate NIC VF, then bind it to vfio drvier:: @@ -112,7 +88,7 @@ Test Case3: Check Interrupt for VF with vfio driver on ixgbe and i40e L3FWD_POWER: lcore 2 sleeps until interrupt triggers -Test Case4: VF interrupt pmd in VM with vfio-pci +Test Case3: VF interrupt pmd in VM with vfio-pci ================================================ 1. Generate NIC VF, then bind it to vfio drvier:: @@ -160,7 +136,7 @@ Test Case4: VF interrupt pmd in VM with vfio-pci L3FWD_POWER: lcore 2 sleeps until interrupt triggers -Test Case5: vf multi-queue interrupt with vfio-pci on i40e +Test Case4: vf multi-queue interrupt with vfio-pci on i40e ========================================================== 1. Generate NIC VF, then bind it to vfio drvier:: @@ -187,7 +163,7 @@ Test Case5: vf multi-queue interrupt with vfio-pci on i40e 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 -Test Case6: VF multi-queue interrupt in VM with vfio-pci on i40e +Test Case5: VF multi-queue interrupt in VM with vfio-pci on i40e ================================================================ 1. Generate NIC VF, then bind it to vfio drvier:: diff --git a/tests/TestSuite_vf_interrupt_pmd.py b/tests/TestSuite_vf_interrupt_pmd.py index 5854cb0c..692a7978 100644 --- a/tests/TestSuite_vf_interrupt_pmd.py +++ b/tests/TestSuite_vf_interrupt_pmd.py @@ -288,30 +288,6 @@ class TestVfInterruptPmd(TestCase): "lcore %s not sleeps" % self.core_user, ) - def test_nic_interrupt_PF_igb_uio(self): - """ - Check Interrupt for PF with igb_uio driver - """ - self.prepare_l3fwd_power(self.dut) - - self.dut.setup_modules_linux(self.target, "igb_uio", "") - - self.dut.ports_info[0]["port"].bind_driver(driver="igb_uio") - - self.begin_l3fwd_power(self.dut) - - self.send_packet(self.mac_port_0, self.rx_intf_0, self.dut) - - self.verify( - "lcore %s is waked up from rx interrupt on port 0" % self.core_user - in self.out2, - "Wake up failed", - ) - self.verify( - "lcore %s sleeps until interrupt triggers" % self.core_user in self.out2, - "lcore %s not sleeps" % self.core_user, - ) - def test_nic_multi_queues_interrupt_VF_vfio_pci(self, driver="default"): """ Check Interrupt for VF with vfio driver, need test with i40e driver