* [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite. @ 2017-11-01 6:12 Yuwei Zhang 2017-11-10 5:21 ` Liu, Yong 0 siblings, 1 reply; 4+ messages in thread From: Yuwei Zhang @ 2017-11-01 6:12 UTC (permalink / raw) To: dts; +Cc: Yuwei Zhang Signed-off-by: Yuwei Zhang <yuwei1.zhang@intel.com> --- 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(-) 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 = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' + self.dut.send_expect('modprobe vfio-pci', '#') # enable tester mtu tester_port = 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 = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' - self.tester.send_expect('modprobe vfio-pci', '#') + self.dut.send_expect('modprobe vfio-pci', '#') def set_up(self): diff --git a/tests/TestSuite_vf_offload.py 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 = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' - self.tester.send_expect('modprobe vfio-pci', '#') + self.dut.send_expect('modprobe vfio-pci', '#') self.setup_2pf_2vf_1vm_env_flag = 0 self.setup_2pf_2vf_1vm_env(driver='') 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 = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' + self.tester.send_expect('modprobe vfio-pci', '#') 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 = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' - self.tester.send_expect('modprobe vfio-pci', '#') + self.dut.send_expect('modprobe vfio-pci', '#') def set_up(self): 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 = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' + self.dut.send_expect('modprobe vfio-pci', '#') 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 = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' + self.dut.send_expect('modprobe vfio-pci', '#') def set_up(self): -- 2.14.1.windows.1 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite. 2017-11-01 6:12 [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite Yuwei Zhang @ 2017-11-10 5:21 ` Liu, Yong 2017-11-10 5:24 ` Zhang, Yuwei1 0 siblings, 1 reply; 4+ messages in thread From: Liu, Yong @ 2017-11-10 5:21 UTC (permalink / raw) To: Zhang, Yuwei1, dts; +Cc: Zhang, Yuwei1 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? 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 <yuwei1.zhang@intel.com> > Subject: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test > suite. > > Signed-off-by: Yuwei Zhang <yuwei1.zhang@intel.com> > --- > 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(-) > > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > + self.dut.send_expect('modprobe vfio-pci', '#') > > # enable tester mtu > tester_port = 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > - self.tester.send_expect('modprobe vfio-pci', '#') > + self.dut.send_expect('modprobe vfio-pci', '#') > > def set_up(self): > > diff --git a/tests/TestSuite_vf_offload.py 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > - self.tester.send_expect('modprobe vfio-pci', '#') > + self.dut.send_expect('modprobe vfio-pci', '#') > > self.setup_2pf_2vf_1vm_env_flag = 0 > self.setup_2pf_2vf_1vm_env(driver='') > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > + self.tester.send_expect('modprobe vfio-pci', '#') > > > > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > - self.tester.send_expect('modprobe vfio-pci', '#') > + self.dut.send_expect('modprobe vfio-pci', '#') > > def set_up(self): > > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > + self.dut.send_expect('modprobe vfio-pci', '#') > > > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > + self.dut.send_expect('modprobe vfio-pci', '#') > > > def set_up(self): > -- > 2.14.1.windows.1 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite. 2017-11-10 5:21 ` Liu, Yong @ 2017-11-10 5:24 ` Zhang, Yuwei1 2017-11-13 9:29 ` Liu, Yong 0 siblings, 1 reply; 4+ messages in thread From: Zhang, Yuwei1 @ 2017-11-10 5:24 UTC (permalink / raw) To: Liu, Yong, dts Dts will parse the config file to determine the vf_driver and bind to the VF, code is in last patch. Thanks. -----Original Message----- From: Liu, Yong Sent: Friday, November 10, 2017 1:21 PM To: Zhang, Yuwei1 <yuwei1.zhang@intel.com>; dts@dpdk.org Cc: Zhang, Yuwei1 <yuwei1.zhang@intel.com> Subject: RE: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite. 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? 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 <yuwei1.zhang@intel.com> > Subject: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test > suite. > > Signed-off-by: Yuwei Zhang <yuwei1.zhang@intel.com> > --- > 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(-) > > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > + self.dut.send_expect('modprobe vfio-pci', '#') > > # enable tester mtu > tester_port = 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > - self.tester.send_expect('modprobe vfio-pci', '#') > + self.dut.send_expect('modprobe vfio-pci', '#') > > def set_up(self): > > diff --git a/tests/TestSuite_vf_offload.py > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > - self.tester.send_expect('modprobe vfio-pci', '#') > + self.dut.send_expect('modprobe vfio-pci', '#') > > self.setup_2pf_2vf_1vm_env_flag = 0 > self.setup_2pf_2vf_1vm_env(driver='') > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > + self.tester.send_expect('modprobe vfio-pci', '#') > > > > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > - self.tester.send_expect('modprobe vfio-pci', '#') > + self.dut.send_expect('modprobe vfio-pci', '#') > > def set_up(self): > > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > + self.dut.send_expect('modprobe vfio-pci', '#') > > > 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 = 'pci-assign' > else: > self.vf_assign_method = 'vfio-pci' > + self.dut.send_expect('modprobe vfio-pci', '#') > > > def set_up(self): > -- > 2.14.1.windows.1 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite. 2017-11-10 5:24 ` Zhang, Yuwei1 @ 2017-11-13 9:29 ` Liu, Yong 0 siblings, 0 replies; 4+ messages in thread From: Liu, Yong @ 2017-11-13 9:29 UTC (permalink / raw) To: Zhang, Yuwei1, dts Got it, patch applied in. On 11/10/2017 01:24 PM, Zhang, Yuwei1 wrote: > Dts will parse the config file to determine the vf_driver and bind to the VF, code is in last patch. Thanks. > > -----Original Message----- > From: Liu, Yong > Sent: Friday, November 10, 2017 1:21 PM > To: Zhang, Yuwei1 <yuwei1.zhang@intel.com>; dts@dpdk.org > Cc: Zhang, Yuwei1 <yuwei1.zhang@intel.com> > Subject: RE: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite. > > 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? > > > 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 <yuwei1.zhang@intel.com> >> Subject: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test >> suite. >> >> Signed-off-by: Yuwei Zhang <yuwei1.zhang@intel.com> >> --- >> 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(-) >> >> 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 = 'pci-assign' >> else: >> self.vf_assign_method = 'vfio-pci' >> + self.dut.send_expect('modprobe vfio-pci', '#') >> >> # enable tester mtu >> tester_port = 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 = 'pci-assign' >> else: >> self.vf_assign_method = 'vfio-pci' >> - self.tester.send_expect('modprobe vfio-pci', '#') >> + self.dut.send_expect('modprobe vfio-pci', '#') >> >> def set_up(self): >> >> diff --git a/tests/TestSuite_vf_offload.py >> 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 = 'pci-assign' >> else: >> self.vf_assign_method = 'vfio-pci' >> - self.tester.send_expect('modprobe vfio-pci', '#') >> + self.dut.send_expect('modprobe vfio-pci', '#') >> >> self.setup_2pf_2vf_1vm_env_flag = 0 >> self.setup_2pf_2vf_1vm_env(driver='') >> 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 = 'pci-assign' >> else: >> self.vf_assign_method = 'vfio-pci' >> + self.tester.send_expect('modprobe vfio-pci', '#') >> >> >> >> 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 = 'pci-assign' >> else: >> self.vf_assign_method = 'vfio-pci' >> - self.tester.send_expect('modprobe vfio-pci', '#') >> + self.dut.send_expect('modprobe vfio-pci', '#') >> >> def set_up(self): >> >> 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 = 'pci-assign' >> else: >> self.vf_assign_method = 'vfio-pci' >> + self.dut.send_expect('modprobe vfio-pci', '#') >> >> >> 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 = 'pci-assign' >> else: >> self.vf_assign_method = 'vfio-pci' >> + self.dut.send_expect('modprobe vfio-pci', '#') >> >> >> def set_up(self): >> -- >> 2.14.1.windows.1 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-13 1:36 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2017-11-01 6:12 [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite Yuwei Zhang 2017-11-10 5:21 ` Liu, Yong 2017-11-10 5:24 ` Zhang, Yuwei1 2017-11-13 9:29 ` Liu, Yong
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).