test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] framework/dut: fix getting nic info failed in FreeBSD
@ 2021-04-01  7:38 Haiyang Zhao
  2021-04-01  7:51 ` Zhao, HaiyangX
  2021-04-07  2:12 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Haiyang Zhao @ 2021-04-01  7:38 UTC (permalink / raw)
  To: dts; +Cc: Haiyang Zhao

Getting pci_id will be failed in FreeBSD and it causes get nic name 
and default_driver failed, and will cause many cases failed, fix it 
by assign the pci_id and reget the nic and driver name.

Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
 framework/dut.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/framework/dut.py b/framework/dut.py
index 6216166d..ca1c9089 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -1061,6 +1061,9 @@ class Dut(Crb):
             bus_id = addr_array[1]
             devfun_id = addr_array[2]
             port = GetNicObj(self, domain_id, bus_id, devfun_id)
+            port.pci_id= pci_id
+            port.name = settings.get_nic_name(pci_id)
+            port.default_driver = settings.get_nic_driver(pci_id)
             intf = port.get_interface_name()
 
             macaddr = port.get_mac_addr()
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] framework/dut: fix getting nic info failed in FreeBSD
  2021-04-01  7:38 [dts] [PATCH V1] framework/dut: fix getting nic info failed in FreeBSD Haiyang Zhao
@ 2021-04-01  7:51 ` Zhao, HaiyangX
  2021-04-07  2:12 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Zhao, HaiyangX @ 2021-04-01  7:51 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]



> -----Original Message-----
> From: Zhao, HaiyangX <haiyangx.zhao@intel.com>
> Sent: Thursday, April 1, 2021 15:39
> To: dts@dpdk.org
> Cc: Zhao, HaiyangX <haiyangx.zhao@intel.com>
> Subject: [dts][PATCH V1] framework/dut: fix getting nic info failed in
> FreeBSD

Tested-by:  Haiyang Zhao <haiyangx.zhao@intel.com>

[-- Attachment #2: TestCoremask.log --]
[-- Type: application/octet-stream, Size: 356327 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] framework/dut: fix getting nic info failed in FreeBSD
  2021-04-01  7:38 [dts] [PATCH V1] framework/dut: fix getting nic info failed in FreeBSD Haiyang Zhao
  2021-04-01  7:51 ` Zhao, HaiyangX
@ 2021-04-07  2:12 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2021-04-07  2:12 UTC (permalink / raw)
  To: Zhao, HaiyangX, dts; +Cc: Zhao, HaiyangX

> Getting pci_id will be failed in FreeBSD and it causes get nic name and
> default_driver failed, and will cause many cases failed, fix it by assign the pci_id
> and reget the nic and driver name.
> 
> Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>

Applied

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-07  2:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01  7:38 [dts] [PATCH V1] framework/dut: fix getting nic info failed in FreeBSD Haiyang Zhao
2021-04-01  7:51 ` Zhao, HaiyangX
2021-04-07  2:12 ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git