test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] FreeBSD can't get PORTMAP
       [not found] <84799DAADE9E2A44834F0D0FF8A61A914BE20C@SHSMSX101.ccr.corp.intel.com>
@ 2015-07-13  1:00 ` Liu, Yong
  0 siblings, 0 replies; only message in thread
From: Liu, Yong @ 2015-07-13  1:00 UTC (permalink / raw)
  To: Fan, ChangruX, dts

Changru, thanks for figure out that. This mean we need freebsd version 
rescan_ports function just like scan_ports.
Can you work on this?

On 07/10/2015 04:20 PM, Fan, ChangruX wrote:
>
> Hi  Liu, Yong
>
>       The /self.ports_info/ has been normally updated in the end of 
> function /“scan_ports_uncached_freebsd”/.
>
> In rescan_ports function, dts update the /“//ipv6” info with the 
> command : ip -family inet6 address show dev ixl1 | awk '/inet6/ { 
> print $2 }'/
>
> But freebsd do not support this /command, then dts can’t get the “ 
> ipv6” of port.  So /*DUT PORT MAP is -1.*
>
> **//
>
> /Changru/
>
> /Thanks./
>
> *From:*Liu, Yong
> *Sent:* Friday, July 10, 2015 1:08 PM
> *To:* Fan, ChangruX; NPG-PRC-SW STV; NPG-PRC-SW STV CW; 'will chen'
> *Cc:* Cao, Waterman
> *Subject:* RE: dts issue
>
> Hi Changru,
>
> In rescan_ports function, dts should only update some port information 
> like /“//mac, intf, ipv6”./And /port_info [‘port’]/ should be 
> initialized in /scan_ports/ function.
>
> Now these codes work fine on linux server, can you check that whether 
> /self.ports_info/ has been normally updated in the end of function 
> /“scan_ports_uncached_freebsd”/.
>
> BYW, can you send this mail to dts mailing list, that’s the right 
> place to discussed about DTS.
>
> *From:*Fan, ChangruX
> *Sent:* Friday, July 10, 2015 11:56 AM
> *To:* NPG-PRC-SW STV; NPG-PRC-SW STV CW; 'will chen'
> *Cc:* Cao, Waterman
> *Subject:* dts issue
>
> Hi  yong:
>
>      When I run dts testing on freebsd, always meet this error.
>
> *DTS_DUT_RESUTL: DUT PORT MAP: [-1, -1]*
>
>      I found the root cause: when rescan port get an error port info.
>
> In the file:  dts\framework\dut.py
>
> def rescan_ports(self):
>
>         unknow_interface = RED('Skipped: unknow_interface')
>
>         for port_info in self.ports_info:
>
> port = port_info['port']
>
>          …..
>
> I think the
>
> port = port_info['port']
>
> should be replaced by:
>
> pci_bus = port_info['pci']
>
>  addr_array = pci_bus.split(':')
>
> bus_id = addr_array[0]
>
> devfun_id = addr_array[1]
>
> port = NetDevice(self, bus_id, devfun_id)
>
> Thanks!
>
> changru
>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-13  0:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <84799DAADE9E2A44834F0D0FF8A61A914BE20C@SHSMSX101.ccr.corp.intel.com>
2015-07-13  1:00 ` [dts] FreeBSD can't get PORTMAP Liu, Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).