[dts] [PATCH] tests: modify the cmd of tester bind driver
Tu, Lijuan
lijuan.tu at intel.com
Wed Sep 4 06:53:03 CEST 2019
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xinfeng Zhao
> Sent: Friday, August 23, 2019 7:55 AM
> To: dts at dpdk.org
> Cc: Zhao, XinfengX <xinfengx.zhao at intel.com>
> Subject: [dts] [PATCH] tests: modify the cmd of tester bind driver
>
> add "--force" in binding command to allow active links to be bind, and
> modify the bind back cmd
>
> Signed-off-by: Xinfeng Zhao <xinfengx.zhao at intel.com>
> ---
> tests/TestSuite_vf_port_start_stop.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_vf_port_start_stop.py
> b/tests/TestSuite_vf_port_start_stop.py
> index 7cb797b..2ff2d1c 100644
> --- a/tests/TestSuite_vf_port_start_stop.py
> +++ b/tests/TestSuite_vf_port_start_stop.py
> @@ -85,7 +85,7 @@ class TestVfPortStartStop(TestCase):
> self.tester_tx_pci = self.tester.ports_info[self.tester_tx_port]['pci']
> port = self.tester.ports_info[self.tester_tx_port]['port']
> self.tester_port_driver = port.get_nic_driver()
> - self.tester.send_expect("./dpdk-devbind.py --bind=igb_uio %s" %
> self.tester_tx_pci, "#")
> + self.tester.send_expect("./dpdk-devbind.py --force
> + --bind=igb_uio %s" % self.tester_tx_pci, "#")
>
> src_mac = self.tester.get_mac(self.tester_tx_port)
> if src_mac == 'N/A':
> @@ -245,7 +245,7 @@ class TestVfPortStartStop(TestCase):
> self.pktgen_kill()
> if getattr(self, 'tester_port_driver', None) and \
> getattr(self, 'tester_tx_pci', None):
> - self.tester.send_expect("./dpdk_nic_bind.py --bind=%s %s" \
> + self.tester.send_expect("./dpdk-devbind.py --bind=%s %s" \
> %(self.tester_port_driver, self.tester_tx_pci), "#")
> tx_interface = self.tester.get_interface(self.tester_tx_port)
> self.tester.send_expect("ifconfig %s up" % tx_interface, "#")
> --
> 2.17.1
More information about the dts
mailing list