[V1] tests/dpdk_gro_lib: add bind ports of ports.cfg step
Commit Message
Add bind ports of ports.cfg step to avoid the effects
on other testsuites.
Signed-off-by: Ling Wei <weix.ling@intel.com>
---
tests/TestSuite_dpdk_gro_lib.py | 3 +++
1 file changed, 3 insertions(+)
Comments
> -----Original Message-----
> From: Ling, WeiX <weix.ling@intel.com>
> Sent: Tuesday, March 30, 2021 05:23 PM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1] tests/dpdk_gro_lib: add bind ports of ports.cfg step
>
Tested-by: Wei Ling <weix.ling@intel.com>
Acked-by: Wang, Yinan <yinan.wang@intel.com>
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> Sent: 2021?3?30? 17:30
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/dpdk_gro_lib: add bind ports of ports.cfg
> step
>
> > -----Original Message-----
> > From: Ling, WeiX <weix.ling@intel.com>
> > Sent: Tuesday, March 30, 2021 05:23 PM
> > To: dts@dpdk.org
> > Cc: Ling, WeiX <weix.ling@intel.com>
> > Subject: [dts][PATCH V1] tests/dpdk_gro_lib: add bind ports of ports.cfg
> step
> >
> Tested-by: Wei Ling <weix.ling@intel.com>
Applied
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Wang, Yinan
> Sent: 2021年4月1日 13:18
> To: Ling, WeiX <weix.ling@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/dpdk_gro_lib: add bind ports of ports.cfg
> step
>
> Acked-by: Wang, Yinan <yinan.wang@intel.com>
>
> > -----Original Message-----
> > From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> > Sent: 2021?3?30? 17:30
> > To: dts@dpdk.org
> > Subject: Re: [dts] [PATCH V1] tests/dpdk_gro_lib: add bind ports of
> > ports.cfg step
> >
> > > -----Original Message-----
> > > From: Ling, WeiX <weix.ling@intel.com>
> > > Sent: Tuesday, March 30, 2021 05:23 PM
> > > To: dts@dpdk.org
> > > Cc: Ling, WeiX <weix.ling@intel.com>
> > > Subject: [dts][PATCH V1] tests/dpdk_gro_lib: add bind ports of
> > > ports.cfg
> > step
> > >
> > Tested-by: Wei Ling <weix.ling@intel.com>
@@ -483,6 +483,9 @@ class TestDPDKGROLib(TestCase):
"""
Run after each test suite.
"""
+ for i in self.dut_ports:
+ port = self.dut.ports_info[i]['port']
+ port.bind_driver(self.def_driver)
self.unprepare_dpdk()
self.dut.send_expect("ip netns del ns1", "# ", 30)
self.dut.send_expect("./usertools/dpdk-devbind.py -u %s" % (self.pci), '# ', 30)