[dts] [PATCH V1] fix test case can't get ports

Liu, Yong yong.liu at intel.com
Fri Jun 19 02:44:23 CEST 2015


Thanks, applied into master branch.

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of huilong,xu
> Sent: Thursday, June 18, 2015 11:34 AM
> To: dts at dpdk.org
> Subject: [dts] [PATCH V1] fix test case can't get ports
> 
> From: huilong xu <huilongx.xu at intel.com>
> 
> issue:
>    test case can't get ports when used port config replace port map
> fix:
>     not check dut port ipv6 connect stats
> 
>    # Please enter the commit message for your changes. Lines starting
> 
> Signed-off-by: huilong xu <huilongx.xu at intel.com>
> ---
>  framework/dut.py |    5 ++---
>  1 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/framework/dut.py b/framework/dut.py
> index a9b4ed0..7762958 100644
> --- a/framework/dut.py
> +++ b/framework/dut.py
> @@ -394,9 +394,8 @@ class Dut(Crb):
>                      if (socket is None or
>                          port_info['numa'] == -1 or
>                              socket == port_info['numa']):
> -                        # port has link
> -                        if (port_info['ipv6'] != "Not connected" and
> -                                self.tester.get_local_port(portid) != -1):
> +                        # port has link,
> +                        if self.tester.get_local_port(portid) != -1:
>                              ports.append(portid)
>              return ports
> 
> --
> 1.7.4.4



More information about the dts mailing list