[dts] [PATCH V2] fix FreeBSD get mac addr error

xu,gang gangx.xu at intel.com
Wed Aug 30 10:58:55 CEST 2017


get mac addr need restore interface

Signed-off-by: xu,gang <gangx.xu at intel.com>
---
 framework/dut.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/framework/dut.py b/framework/dut.py
index 22ff0bb..682da8c 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -190,6 +190,10 @@ class Dut(Crb):
 
         if self.get_os_type() == 'freebsd':
             self.send_expect('alias make=gmake', '# ')
+            out = self.__send_expect('kldstat', '# ')
+            if 'nic_uio.ko' in out:
+                self.__send_expect('kldunload nic_uio.ko', '# ')
+                self.__send_expect('kldunload contigmem.ko', '# ')
 
         self.init_core_list()
         self.pci_devices_information()
-- 
1.9.3



More information about the dts mailing list