[dts] [PATCH V1] tests/TestSuite_pmdpcap:freebsd load driver.

Han, YingyaX yingyax.han at intel.com
Tue Apr 21 03:37:59 CEST 2020


Tested-by: Han,YingyaX <yingyax.han at intel.com>

BRs,
Yingya

-----Original Message-----
From: dts <dts-bounces at dpdk.org> On Behalf Of Huang Zhimin
Sent: Monday, April 20, 2020 2:40 PM
To: dts at dpdk.org
Cc: Huang, ZhiminX <zhiminx.huang at intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_pmdpcap:freebsd load driver.

From: Zhimin Huang <zhiminx.huang at intel.com>

*. restore freebsd interfaces need reload driver.

Signed-off-by: Zhimin Huang <zhiminx.huang at intel.com>
---
 tests/TestSuite_pmdpcap.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/TestSuite_pmdpcap.py b/tests/TestSuite_pmdpcap.py index 4f6c426..fc5acf7 100644
--- a/tests/TestSuite_pmdpcap.py
+++ b/tests/TestSuite_pmdpcap.py
@@ -63,6 +63,10 @@ class TestPmdPcap(TestCase):
         # because if there is any interface bonded to igb_uio,
         # it will result in packet transmitting failed
         self.dut.restore_interfaces()
+        os_type = self.dut.get_os_type()
+        if os_type == "freebsd":
+            self.dut.send_expect("kldload contigmem", "#",20)
+            self.dut.send_expect("kldload nic_uio", "#",20)
 
     def get_pcap_compile_config(self):
         config_head = "common_"
--
2.7.4

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestPmdPcap.log
Type: application/octet-stream
Size: 70841 bytes
Desc: TestPmdPcap.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200421/5e88fb38/attachment.obj>


More information about the dts mailing list