From: "xu,huilong" <huilongx.xu@intel.com>
To: dts@dpdk.org
Subject: [dts] [PATCH V2 2/3] remove auto_portmap parameter
Date: Tue, 22 Dec 2015 14:01:17 +0800 [thread overview]
Message-ID: <1450764078-91540-2-git-send-email-huilongx.xu@intel.com> (raw)
In-Reply-To: <1450764078-91540-1-git-send-email-huilongx.xu@intel.com>
remove auto_portmap parameter when init virt dut.
because set portmap by crete_portmap function
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
framework/virt_base.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/framework/virt_base.py b/framework/virt_base.py
index 4a445d1..1d0c282 100644
--- a/framework/virt_base.py
+++ b/framework/virt_base.py
@@ -224,7 +224,7 @@ class VirtBase(object):
self.load_global_config()
self.load_local_config(self.suite)
- def start(self, load_config=True, set_target=True, cpu_topo='', auto_portmap=True, bind_dev=True):
+ def start(self, load_config=True, set_target=True, cpu_topo='', bind_dev=True):
"""
Start VM and instantiate the VM with VirtDut.
"""
@@ -238,7 +238,7 @@ class VirtBase(object):
self._start_vm()
# connect vm dut and init running environment
- vm_dut = self.instantiate_vm_dut(set_target, cpu_topo, auto_portmap)
+ vm_dut = self.instantiate_vm_dut(set_target, cpu_topo)
except Exception as vm_except:
if self.handle_exception(vm_except):
print dts.RED("Handled expection " + str(type(vm_except)))
@@ -293,7 +293,7 @@ class VirtBase(object):
"""
NotImplemented
- def instantiate_vm_dut(self, set_target=True, cpu_topo='', auto_portmap=True, bind_dev=True):
+ def instantiate_vm_dut(self, set_target=True, cpu_topo='', bind_dev=True):
"""
Instantiate the Dut class for VM.
"""
@@ -341,7 +341,7 @@ class VirtBase(object):
try:
# setting up dpdk in vm, must call at last
- vm_dut.prerequisites(dts.Package, dts.Patches, auto_portmap)
+ vm_dut.prerequisites(dts.Package, dts.Patches)
if set_target:
target = self.host_dut.target
vm_dut.set_target(target, bind_dev)
--
1.9.3
next prev parent reply other threads:[~2015-12-22 6:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-22 6:01 [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp xu,huilong
2015-12-22 6:01 ` xu,huilong [this message]
2015-12-22 6:01 ` [dts] [PATCH V2 3/3] used create_portmap get portmap xu,huilong
2015-12-23 7:14 ` [dts] [PATCH V2 1/3] add exec permissions for qemu-ga-client and qmp Liu, Yong
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=1450764078-91540-2-git-send-email-huilongx.xu@intel.com \
--to=huilongx.xu@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).