From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id C0C6A5F24 for ; Wed, 7 Mar 2018 10:16:27 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2018 01:16:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,435,1515484800"; d="scan'208";a="180602509" Received: from dpdk-test32.sh.intel.com ([10.67.119.122]) by orsmga004.jf.intel.com with ESMTP; 07 Mar 2018 01:16:25 -0800 From: Marvin Liu To: dts@dpdk.org Cc: Marvin Liu Date: Thu, 8 Mar 2018 01:06:08 +0800 Message-Id: <1520442368-77344-3-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1520442368-77344-1-git-send-email-yong.liu@intel.com> References: <1520442368-77344-1-git-send-email-yong.liu@intel.com> Subject: [dts] [PATCH v1 3/3] framework/virt_dut: setup configured kernel module 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: , X-List-Received-Date: Wed, 07 Mar 2018 09:16:28 -0000 When initializing virtual dut, configured kernel module should be insmod. Module name and related parameter should be loaded from VM configuration. Signed-off-by: Marvin Liu diff --git a/framework/virt_dut.py b/framework/virt_dut.py index 62688dc..cd89cb5 100644 --- a/framework/virt_dut.py +++ b/framework/virt_dut.py @@ -132,7 +132,7 @@ class VirtDut(DPDKdut): pci_idx = self.tester.get_local_index(tester_pci) self.ports_map[index] = pci_idx - def set_target(self, target, bind_dev=True): + def set_target(self, target, bind_dev=True, driver_name="", driver_mode=""): """ Set env variable, these have to be setup all the time. Some tests need to compile example apps by themselves and will fail otherwise. @@ -150,10 +150,11 @@ class VirtDut(DPDKdut): self.build_install_dpdk(target) self.setup_memory(hugepages=1024) - self.setup_modules(target) + + self.setup_modules(target, driver_name, driver_mode) if bind_dev: - self.bind_interfaces_linux('igb_uio') + self.bind_interfaces_linux(driver_name) def prerequisites(self, pkgName, patch, autodetect_topo): """ -- 1.9.3