test suite reviews and discussions
 help / color / mirror / Atom feed
From: Marvin Liu <yong.liu@intel.com>
To: dts@dpdk.org
Cc: Marvin Liu <yong.liu@intel.com>
Subject: [dts] [PATCH v1 3/3] framework/virt_dut: setup configured kernel module
Date: Thu,  8 Mar 2018 01:06:08 +0800	[thread overview]
Message-ID: <1520442368-77344-3-git-send-email-yong.liu@intel.com> (raw)
In-Reply-To: <1520442368-77344-1-git-send-email-yong.liu@intel.com>

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 <yong.liu@intel.com>

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

      parent reply	other threads:[~2018-03-07  9:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-07 17:06 [dts] [PATCH v1 1/3] framework/project_dpdk: add new arguments in setup_modules function Marvin Liu
2018-03-07 17:06 ` [dts] [PATCH v1 2/3] framework/virt_base: add default kernel driver option Marvin Liu
2018-03-07 17:06 ` Marvin Liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1520442368-77344-3-git-send-email-yong.liu@intel.com \
    --to=yong.liu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).