From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id C99371B332 for ; Fri, 10 Nov 2017 06:21:33 +0100 (CET) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP; 09 Nov 2017 21:21:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,372,1505804400"; d="scan'208";a="148188717" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga004.jf.intel.com with ESMTP; 09 Nov 2017 21:21:32 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 9 Nov 2017 21:21:32 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 9 Nov 2017 21:21:31 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Fri, 10 Nov 2017 13:21:29 +0800 From: "Liu, Yong" To: "Zhang, Yuwei1" , "dts@dpdk.org" CC: "Zhang, Yuwei1" Thread-Topic: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite. Thread-Index: AQHTUth0EgjIr/0cW0O1+vwuMTtuEKMNINJw Date: Fri, 10 Nov 2017 05:21:29 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62F14694@SHSMSX103.ccr.corp.intel.com> References: <20171101061227.14812-1-yuwei1.zhang@intel.com> In-Reply-To: <20171101061227.14812-1-yuwei1.zhang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzlmOGU2ZDQtMmE2Mi00Zjk3LThkMTUtZjZiZjI4MzI3ZDZhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJtN0NOaXd2aVJUdVp5Mll5UWNUdVF1KzhFNGh4cUcyU1VSOWVQVkRxUVg4VGtLT0U1ZWxTbFA5UXF0MGd3b3h6In0= x-ctpclassification: CTP_IC 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:21:34 -0000 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 > 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 +- > 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 > 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 b/tests/TestSuite_vf_offload.p= y > 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 > 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