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 47633A0561; Mon, 20 Apr 2020 07:23:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3DF1B1D14C; Mon, 20 Apr 2020 07:23:17 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id C8F3D1D147 for ; Mon, 20 Apr 2020 07:23:14 +0200 (CEST) IronPort-SDR: yEzYGvPFlcZK3yhhoOVdambNWhcJCU4S9+eK3K4gEmDlBL1nkV8C4sPNmxvS/ulNuAbMRdPnQM kBzYOJa8FQ/A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2020 22:23:13 -0700 IronPort-SDR: va3f+Vl2Ilo0gqksq1xqQtZ8ISSwmBRTFNOmeztxTP+/d1Ngan0Lh1DUiPPMSGaxuQRJdwe+5i rpDtJQ13rWDQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,405,1580803200"; d="scan'208";a="456264537" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga006.fm.intel.com with ESMTP; 19 Apr 2020 22:23:13 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Apr 2020 22:23:13 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 19 Apr 2020 22:23:13 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.89]) with mapi id 14.03.0439.000; Mon, 20 Apr 2020 13:23:11 +0800 From: "Tu, Lijuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1]interrupt_pmd: only vfio-pci support interrupt and reduce run time Thread-Index: AQHWFGtHyC9XZVIyzU2uyRjMvhietqiBfrIw Date: Mon, 20 Apr 2020 05:23:10 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0D2E8@SHSMSX101.ccr.corp.intel.com> References: <1587094995-281098-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1587094995-281098-1-git-send-email-qimaix.xiao@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.2.0.6 dlp-reaction: no-action 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 V1]interrupt_pmd: only vfio-pci support interrupt and reduce run time 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xiao Qimai > Sent: Friday, April 17, 2020 11:43 AM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts] [PATCH V1]interrupt_pmd: only vfio-pci support interrupt a= nd > reduce run time >=20 > *. dpdk not support interrupt mode with igb_uio >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_interrupt_pmd.py | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_interrupt_pmd.py > b/tests/TestSuite_interrupt_pmd.py > index a0467bd..17a58af 100644 > --- a/tests/TestSuite_interrupt_pmd.py > +++ b/tests/TestSuite_interrupt_pmd.py > @@ -64,6 +64,22 @@ class TestInterruptPmd(TestCase): > out =3D self.dut.build_dpdk_apps("./examples/l3fwd-power") > self.verify("Error" not in out, "compilation error 1") > self.verify("No such file" not in out, "compilation error 2") > + self.default_driver =3D self.get_nic_driver() > + test_driver =3D "vfio-pci" > + if test_driver !=3D self.default_driver: > + self.dut.send_expect("modprobe %s" % test_driver, "#") > + self.set_nic_driver(test_driver) > + > + def get_nic_driver(self, port_id=3D0): > + port =3D self.dut.ports_info[port_id]["port"] > + return port.get_nic_driver() > + > + def set_nic_driver(self, set_driver=3D'vfio-pci'): > + for i in self.dut_ports: > + port =3D self.dut.ports_info[i]["port"] > + driver =3D port.get_nic_driver() > + if driver !=3D set_driver: > + port.bind_driver(driver=3Dset_driver) >=20 > def set_up(self): > """ > @@ -113,7 +129,7 @@ class TestInterruptPmd(TestCase): > txItf =3D self.tester.get_interface(txport) > self.tester.scapy_append( > 'sendp([Ether()/IP(dst=3D"198.0.0.%d")/UDP()/Raw(\'X= \'*18)], > iface=3D"%s")' % (j, txItf)) > - self.tester.scapy_execute() > + self.tester.scapy_execute() >=20 > def tear_down(self): > """ > @@ -126,3 +142,4 @@ class TestInterruptPmd(TestCase): > Run after each test suite. > """ > self.dut.kill_all() > + self.set_nic_driver(self.default_driver) > -- > 1.8.3.1