From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id C78B11B660 for ; Fri, 10 Nov 2017 06:24:42 +0100 (CET) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Nov 2017 21:24:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,372,1505804400"; d="scan'208";a="148189215" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 09 Nov 2017 21:24:41 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 9 Nov 2017 21:24:36 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.159]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Fri, 10 Nov 2017 13:24:24 +0800 From: "Zhang, Yuwei1" To: "Liu, Yong" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite. Thread-Index: AQHTWePDcKkmXAd1HE2aO2j50PdsaKMNFD2A Date: Fri, 10 Nov 2017 05:24:23 +0000 Message-ID: References: <20171101061227.14812-1-yuwei1.zhang@intel.com> <86228AFD5BCD8E4EBFD2B90117B5E81E62F14694@SHSMSX103.ccr.corp.intel.com> In-Reply-To: <86228AFD5BCD8E4EBFD2B90117B5E81E62F14694@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzlmOGU2ZDQtMmE2Mi00Zjk3LThkMTUtZjZiZjI4MzI3ZDZhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IldHVlwvRjFNUWdTVVcrQnRHbHRhVWJhUUVGQTVyc2pkYzRPWCtWYnVvTkNvPSJ9 dlp-product: dlpe-windows dlp-version: 11.0.0.116 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] modprobe vfio-pci driver in vf related test suite. 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: Fri, 10 Nov 2017 05:24:43 -0000 Dts will parse the config file to determine the vf_driver and bind to the V= F, code is in last patch. Thanks. -----Original Message----- From: Liu, Yong=20 Sent: Friday, November 10, 2017 1:21 PM To: Zhang, Yuwei1 ; dts@dpdk.org Cc: Zhang, Yuwei1 Subject: RE: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test s= uite. Hi Yuwei, I can't see any bind action in your patch, is there any code can make sure = VF device was bound to vfio-pci?=20 Thanks, Marvin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yuwei Zhang > Sent: Wednesday, November 01, 2017 2:12 PM > To: dts@dpdk.org > Cc: Zhang, Yuwei1 > Subject: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test=20 > suite. >=20 > Signed-off-by: Yuwei Zhang > --- > tests/TestSuite_vf_jumboframe.py | 1 + > tests/TestSuite_vf_macfilter.py | 2 +- > tests/TestSuite_vf_offload.py | 2 +- > tests/TestSuite_vf_packet_rxtx.py | 1 + > tests/TestSuite_vf_port_start_stop.py | 2 +- =20 > tests/TestSuite_vf_to_vf_nic_bridge.py | 1 + > tests/TestSuite_vf_vlan.py | 1 + > 7 files changed, 7 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_vf_jumboframe.py > b/tests/TestSuite_vf_jumboframe.py > index 7a62a50..fc4971b 100644 > --- a/tests/TestSuite_vf_jumboframe.py > +++ b/tests/TestSuite_vf_jumboframe.py > @@ -43,6 +43,7 @@ class TestVfJumboFrame(TestCase): > self.vf_assign_method =3D 'pci-assign' > else: > self.vf_assign_method =3D 'vfio-pci' > + self.dut.send_expect('modprobe vfio-pci', '#') >=20 > # enable tester mtu > tester_port =3D self.tester.get_local_port(self.port) > diff --git a/tests/TestSuite_vf_macfilter.py=20 > b/tests/TestSuite_vf_macfilter.py index ec290a7..23105a4 100644 > --- a/tests/TestSuite_vf_macfilter.py > +++ b/tests/TestSuite_vf_macfilter.py > @@ -30,7 +30,7 @@ class TestVfMacFilter(TestCase): > self.vf_assign_method =3D 'pci-assign' > else: > self.vf_assign_method =3D 'vfio-pci' > - self.tester.send_expect('modprobe vfio-pci', '#') > + self.dut.send_expect('modprobe vfio-pci', '#') >=20 > def set_up(self): >=20 > diff --git a/tests/TestSuite_vf_offload.py=20 > b/tests/TestSuite_vf_offload.py index 2cb402b..61ef453 100644 > --- a/tests/TestSuite_vf_offload.py > +++ b/tests/TestSuite_vf_offload.py > @@ -32,7 +32,7 @@ class TestVfOffload(TestCase): > self.vf_assign_method =3D 'pci-assign' > else: > self.vf_assign_method =3D 'vfio-pci' > - self.tester.send_expect('modprobe vfio-pci', '#') > + self.dut.send_expect('modprobe vfio-pci', '#') >=20 > self.setup_2pf_2vf_1vm_env_flag =3D 0 > self.setup_2pf_2vf_1vm_env(driver=3D'') > diff --git a/tests/TestSuite_vf_packet_rxtx.py > b/tests/TestSuite_vf_packet_rxtx.py > index 56d618c..83ccf1e 100644 > --- a/tests/TestSuite_vf_packet_rxtx.py > +++ b/tests/TestSuite_vf_packet_rxtx.py > @@ -30,6 +30,7 @@ class TestVfPacketRxtx(TestCase): > self.vf_assign_method =3D 'pci-assign' > else: > self.vf_assign_method =3D 'vfio-pci' > + self.tester.send_expect('modprobe vfio-pci', '#') >=20 >=20 >=20 > diff --git a/tests/TestSuite_vf_port_start_stop.py > b/tests/TestSuite_vf_port_start_stop.py > index 5629f8c..3ebee73 100644 > --- a/tests/TestSuite_vf_port_start_stop.py > +++ b/tests/TestSuite_vf_port_start_stop.py > @@ -32,7 +32,7 @@ class TestVfPortStartStop(TestCase): > self.vf_assign_method =3D 'pci-assign' > else: > self.vf_assign_method =3D 'vfio-pci' > - self.tester.send_expect('modprobe vfio-pci', '#') > + self.dut.send_expect('modprobe vfio-pci', '#') >=20 > def set_up(self): >=20 > diff --git a/tests/TestSuite_vf_to_vf_nic_bridge.py > b/tests/TestSuite_vf_to_vf_nic_bridge.py > index c5b1cb6..a85cab5 100644 > --- a/tests/TestSuite_vf_to_vf_nic_bridge.py > +++ b/tests/TestSuite_vf_to_vf_nic_bridge.py > @@ -66,6 +66,7 @@ class TestVF2VFBridge(TestCase): > self.vf_assign_method =3D 'pci-assign' > else: > self.vf_assign_method =3D 'vfio-pci' > + self.dut.send_expect('modprobe vfio-pci', '#') >=20 >=20 > def set_up(self): > diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py=20 > index ab64a15..f087011 100644 > --- a/tests/TestSuite_vf_vlan.py > +++ b/tests/TestSuite_vf_vlan.py > @@ -34,6 +34,7 @@ class TestVfVlan(TestCase): > self.vf_assign_method =3D 'pci-assign' > else: > self.vf_assign_method =3D 'vfio-pci' > + self.dut.send_expect('modprobe vfio-pci', '#') >=20 >=20 > def set_up(self): > -- > 2.14.1.windows.1