From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B5222A0561; Mon, 20 Apr 2020 08:54:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AABFF1D37E; Mon, 20 Apr 2020 08:54:34 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id C7B8B1C43D for ; Mon, 20 Apr 2020 08:54:32 +0200 (CEST) IronPort-SDR: A2FBl3v5BTLdWz8RgYvRDDDp/+oRIwSh4dUj+3gHe7TBAIgQn+xlvK0mYoUqdhNLy+74zBp7Lv RqlTmjWr8x8Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2020 23:54:31 -0700 IronPort-SDR: fG5JozPSFWRRb4CfjqBYvSAFk3GhjT4qOlHykfNCj7pzPyevtoslIahmtSmDlSBSo1TL4WSkK3 iMWjd711vAuA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,406,1580803200"; d="scan'208";a="273088312" Received: from odcacrnlx01.sh.intel.com ([10.240.183.66]) by orsmga002.jf.intel.com with ESMTP; 19 Apr 2020 23:54:30 -0700 From: Huang Zhimin To: dts@dpdk.org Cc: Zhimin Huang Date: Mon, 20 Apr 2020 14:39:32 +0800 Message-Id: <1587364772-4161-1-git-send-email-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/TestSuite_pmdpcap:freebsd load driver. 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: Zhimin Huang *. restore freebsd interfaces need reload driver. Signed-off-by: Zhimin Huang --- 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