[dts] [PATCH V1 1/3]dpdk_gro_lib: set test nic to driver specified in cfg
Tu, Lijuan
lijuan.tu at intel.com
Mon Apr 27 09:51:45 CEST 2020
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xiao Qimai
> Sent: Sunday, April 26, 2020 6:39 PM
> To: dts at dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao at intel.com>
> Subject: [dts] [PATCH V1 1/3]dpdk_gro_lib: set test nic to driver specified in
> cfg
>
> Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
> ---
> tests/TestSuite_dpdk_gro_lib.py | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tests/TestSuite_dpdk_gro_lib.py
> b/tests/TestSuite_dpdk_gro_lib.py index 36841b9..0e1e3c8 100644
> --- a/tests/TestSuite_dpdk_gro_lib.py
> +++ b/tests/TestSuite_dpdk_gro_lib.py
> @@ -53,6 +53,7 @@ class TestDPDKGROLib(TestCase):
>
> # unbind the port which config in ports.cfg
> self.dut_ports = self.dut.get_ports()
> + self.def_driver =
> + self.dut.ports_info[self.dut_ports[0]]['port'].get_nic_driver()
> for i in self.dut_ports:
> port = self.dut.ports_info[i]['port']
> port.bind_driver()
> @@ -66,9 +67,8 @@ class TestDPDKGROLib(TestCase):
> and len(self.peer_pci) != 0
> and len(self.nic_in_kernel) != 0,
> 'Pls config the direct connection info in vhost_peer_conf.cfg')
> - self.dut.send_expect(
> - "./usertools/dpdk-devbind.py -b igb_uio %s" %
> - self.pci, '#', 30)
> + bind_script_path = self.dut.get_dpdk_bind_script()
> + self.dut.send_expect('%s --bind=%s %s' % (bind_script_path,
> + self.def_driver, self.pci), '# ')
>
> # get the numa info about the pci info which config in peer cfg
> bus = int(self.pci[5:7], base=16)
> --
> 1.8.3.1
More information about the dts
mailing list