[dts] [PATCH V1] Fix VF driver problem

Chen, BoX C box.c.chen at intel.com
Fri Jul 3 09:33:00 CEST 2020


Tested-by:  Chen, BoX C <BoX.C.Chen at intel.com>

Regards,
Chen Bo

> -----Original Message-----
> From: Chen, BoX C <box.c.chen at intel.com>
> Sent: July 3, 2020 15:20
> To: dts at dpdk.org
> Cc: Chen, BoX C <box.c.chen at intel.com>
> Subject: [dts][PATCH V1] Fix VF driver problem
> 
> After creating VF, VF needs to be bound to the default driver to generate the
> port name.
> 
> Signed-off-by: ChenBo <box.c.chen at intel.com>
> ---
>  tests/TestSuite_cvl_dcf_switch_filter.py | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_cvl_dcf_switch_filter.py
> b/tests/TestSuite_cvl_dcf_switch_filter.py
> index 5c39eaa..1a51d40 100644
> --- a/tests/TestSuite_cvl_dcf_switch_filter.py
> +++ b/tests/TestSuite_cvl_dcf_switch_filter.py
> @@ -903,7 +903,8 @@ class SwitchFilterTest(TestCase):
>          self.verify(len(self.dut_ports) >= 1, "Insufficient ports")
>          localPort = self.tester.get_local_port(self.dut_ports[0])
>          self.__tx_iface = self.tester.get_interface(localPort)
> -        self.dut.send_expect("ifconfig %s up" % self.__tx_iface, "# ")
> +        self.tester.send_expect("ifconfig %s up" % self.__tx_iface, "# ")
> +        self.dut.send_expect("ifconfig %s up" % self.dut_ports[0], "#
> + ")
>          self.pkt = Packet()
>          self.testpmd_status = "close"
>          self.suite_config = rfc.get_suite_config(self) @@ -1586,6 +1587,7 @@
> class SwitchFilterTest(TestCase):
>          #sort the vf interfaces and pcis by pcis
>          vfs = {}
>          for vf_port in self.sriov_vfs_port:
> +            vf_port.bind_driver()
>              vfs[vf_port.pci] = vf_port.intf_name
>          vfs_sort = sorted(vfs.items(), key=lambda item:item[0])
>          vf_pci = [key for key,value in vfs_sort] @@ -1808,7 +1810,7 @@ class
> SwitchFilterTest(TestCase):
>          """
>          if self.testpmd_status != "close":
>              # destroy all flow rules on DCF
> -            self.dut.send_expect("flow flush 0", "testpmd> ", 15)
> +            self.dut.send_expect("flow flush 0", "testpmd> ", 120)
>              self.dut.send_expect("clear port stats all", "testpmd> ", 15)
>              self.dut.send_expect("quit", "#", 15)
>          self.testpmd_status = "close"
> --
> 2.17.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: SwitchFilterTest.log
Type: application/octet-stream
Size: 2954350 bytes
Desc: SwitchFilterTest.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200703/2779b6f9/attachment.obj>


More information about the dts mailing list