From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 2183B592B for ; Mon, 13 Jul 2015 02:58:42 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 12 Jul 2015 17:58:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,459,1432623600"; d="scan'208,217";a="727608609" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by orsmga001.jf.intel.com with ESMTP; 12 Jul 2015 17:58:40 -0700 Message-ID: <55A30DB0.4030406@intel.com> Date: Mon, 13 Jul 2015 09:00:32 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "Fan, ChangruX" , "dts@dpdk.org" References: <84799DAADE9E2A44834F0D0FF8A61A914BE20C@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <84799DAADE9E2A44834F0D0FF8A61A914BE20C@SHSMSX101.ccr.corp.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dts] FreeBSD can't get PORTMAP X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2015 00:58:44 -0000 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 >