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

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

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).