[dts] [PATCH V1 1/2] tests/vf packet rxtx:add dpdk pf test scenorio
Tu, Lijuan
lijuan.tu at intel.com
Thu Nov 22 10:42:04 CET 2018
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhao,meijuan
> Sent: Wednesday, November 21, 2018 1:46 PM
> To: dts at dpdk.org
> Cc: Zhao, MeijuanX <meijuanx.zhao at intel.com>
> Subject: [dts] [PATCH V1 1/2] tests/vf packet rxtx:add dpdk pf test scenorio
>
> Signed-off-by: zhao,meijuan <meijuanx.zhao at intel.com>
> ---
> tests/TestSuite_vf_packet_rxtx.py | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_vf_packet_rxtx.py
> b/tests/TestSuite_vf_packet_rxtx.py
> index 6a29d23..c56bdd7 100644
> --- a/tests/TestSuite_vf_packet_rxtx.py
> +++ b/tests/TestSuite_vf_packet_rxtx.py
> @@ -61,7 +61,6 @@ class TestVfPacketRxtx(TestCase):
> vf0_prop = {'opt_host': self.sriov_vfs_port_0[0].pci}
> vf1_prop = {'opt_host': self.sriov_vfs_port_1[0].pci}
>
> -
> if driver == 'igb_uio':
> # start testpmd without the two VFs on the host
> self.host_testpmd = PmdOutput(self.dut) @@ -252,10
> +251,16 @@ class TestVfPacketRxtx(TestCase):
>
> self.setup_3vf_2vm_env_flag = 0
>
> - def test_vf_reset(self):
> + def test_kernel_pf_vf_reset(self):
>
> self.setup_3vf_2vm_env(driver='')
> + self.vf_reset()
> +
> + def test_dpdk_pf_vf_reset(self):
> + self.setup_3vf_2vm_env(driver='igb_uio')
> + self.vf_reset()
>
> + def vf_reset(self):
> self.vm0_dut_ports = self.vm_dut_0.get_ports('any')
> self.vm1_dut_ports = self.vm_dut_1.get_ports('any')
>
> --
> 2.17.2
More information about the dts
mailing list