test suite reviews and discussions
 help / color / mirror / Atom feed
* [PATCH V1] tests/basic_4k_pages_cbdma: connect VM with the IP address when config hostname in crbs.cfg
@ 2023-03-13  3:12 Wei Ling
  2023-03-21 13:27 ` He, Xingguang
  2023-03-28  1:05 ` lijuan.tu
  0 siblings, 2 replies; 3+ messages in thread
From: Wei Ling @ 2023-03-13  3:12 UTC (permalink / raw)
  To: dts; +Cc: Wei Ling

When config hostname in conf/cfbs.cfg, eg: dpdk-dut, the self.dut.get_ip_address()
will get the dpdk-dut, so modify get_host_ip(self.addr) to get the IP
address to connect the VM, eg: 192.168.1.1.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 tests/TestSuite_basic_4k_pages_cbdma.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_basic_4k_pages_cbdma.py b/tests/TestSuite_basic_4k_pages_cbdma.py
index b4d09107..70415dd1 100644
--- a/tests/TestSuite_basic_4k_pages_cbdma.py
+++ b/tests/TestSuite_basic_4k_pages_cbdma.py
@@ -181,7 +181,7 @@ class TestBasic4kPagesCbdma(TestCase):
     def connect_vm0(self):
         self.vm0 = QEMUKvm(self.dut, "vm0", self.suite_name)
         self.vm0.net_type = "hostfwd"
-        self.vm0.hostfwd_addr = "%s:6000" % self.dut.get_ip_address()
+        self.vm0.hostfwd_addr = "%s:6000" % self.host_addr
         self.vm0.def_driver = "vfio-pci"
         self.vm0.driver_mode = "noiommu"
         self.wait_vm_net_ready(vm_index=0)
@@ -194,7 +194,7 @@ class TestBasic4kPagesCbdma(TestCase):
     def connect_vm1(self):
         self.vm1 = QEMUKvm(self.dut, "vm1", "vm_hotplug")
         self.vm1.net_type = "hostfwd"
-        self.vm1.hostfwd_addr = "%s:6001" % self.dut.get_ip_address()
+        self.vm1.hostfwd_addr = "%s:6001" % self.host_addr
         self.vm1.def_driver = "vfio-pci"
         self.vm1.driver_mode = "noiommu"
         self.wait_vm_net_ready(vm_index=1)
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH V1] tests/basic_4k_pages_cbdma: connect VM with the IP address when config hostname in crbs.cfg
  2023-03-13  3:12 [PATCH V1] tests/basic_4k_pages_cbdma: connect VM with the IP address when config hostname in crbs.cfg Wei Ling
@ 2023-03-21 13:27 ` He, Xingguang
  2023-03-28  1:05 ` lijuan.tu
  1 sibling, 0 replies; 3+ messages in thread
From: He, Xingguang @ 2023-03-21 13:27 UTC (permalink / raw)
  To: Ling, WeiX, dts; +Cc: Ling, WeiX

> -----Original Message-----
> From: Wei Ling <weix.ling@intel.com>
> Sent: Monday, March 13, 2023 11:13 AM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [PATCH V1] tests/basic_4k_pages_cbdma: connect VM with the IP
> address when config hostname in crbs.cfg
> 
> When config hostname in conf/cfbs.cfg, eg: dpdk-dut, the
> self.dut.get_ip_address() will get the dpdk-dut, so modify
> get_host_ip(self.addr) to get the IP address to connect the VM, eg:
> 192.168.1.1.
> 
> Signed-off-by: Wei Ling <weix.ling@intel.com>
> ---

Acked-by: Xingguang He<xingguang.he@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH V1] tests/basic_4k_pages_cbdma: connect VM with the IP address when config hostname in crbs.cfg
  2023-03-13  3:12 [PATCH V1] tests/basic_4k_pages_cbdma: connect VM with the IP address when config hostname in crbs.cfg Wei Ling
  2023-03-21 13:27 ` He, Xingguang
@ 2023-03-28  1:05 ` lijuan.tu
  1 sibling, 0 replies; 3+ messages in thread
From: lijuan.tu @ 2023-03-28  1:05 UTC (permalink / raw)
  To: dts, Wei Ling; +Cc: Wei Ling

On Mon, 13 Mar 2023 11:12:40 +0800, Wei Ling <weix.ling@intel.com> wrote:
> When config hostname in conf/cfbs.cfg, eg: dpdk-dut, the self.dut.get_ip_address()
> will get the dpdk-dut, so modify get_host_ip(self.addr) to get the IP
> address to connect the VM, eg: 192.168.1.1.
> 
> Signed-off-by: Wei Ling <weix.ling@intel.com>


Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-28  1:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-13  3:12 [PATCH V1] tests/basic_4k_pages_cbdma: connect VM with the IP address when config hostname in crbs.cfg Wei Ling
2023-03-21 13:27 ` He, Xingguang
2023-03-28  1:05 ` lijuan.tu

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).