test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/TestSuite.ipfrag.py add -w option in set_up_all method
@ 2020-07-15 15:52 Ling, WeiX
  0 siblings, 0 replies; 2+ messages in thread
From: Ling, WeiX @ 2020-07-15 15:52 UTC (permalink / raw)
  To: dts; +Cc: Ling, WeiX, Ling

Because of DPDK update,if run ip_fragmentation app without -w option in
set_up_all method,it will use all drivers which bind into dpdk.

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

diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py
index cbcd5fe..8ad2e82 100644
--- a/tests/TestSuite_ipfrag.py
+++ b/tests/TestSuite_ipfrag.py
@@ -129,10 +129,13 @@ l3fwd_ipv4_route_array[] = {\\\n"
         numPortThread = len([P0, P1]) / len(cores)
         result = True
         errString = ''
+        eal_param = ""
+        for i in [P0, P1]:
+            eal_param += " -w %s" % self.dut.ports_info[i]['pci']
 
         # run ipv4_frag
-        self.dut.send_expect("examples/ip_fragmentation/build/ip_fragmentation -c %s -n %d -- -p %s -q %s" % (
-            coremask, self.dut.get_memory_channels(), portmask, int(numPortThread)), "Link Up", 120)
+        self.dut.send_expect("examples/ip_fragmentation/build/ip_fragmentation -c %s -n %d %s -- -p %s -q %s" % (
+            coremask, self.dut.get_memory_channels(), eal_param, portmask, int(numPortThread)), "Link Up", 120)
 
         time.sleep(2)
         self.txItf = self.tester.get_interface(self.tester.get_local_port(P0))
-- 
2.17.1


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

* [dts] [PATCH V1] tests/TestSuite.ipfrag.py add -w option in set_up_all method
@ 2020-07-17 10:40 Ling, WeiX
  0 siblings, 0 replies; 2+ messages in thread
From: Ling, WeiX @ 2020-07-17 10:40 UTC (permalink / raw)
  To: dts; +Cc: Ling, WeiX, Ling

Because of DPDK update,if run ip_fragmentation app without -w option in
set_up_all method,it will use all drivers which bind into dpdk.

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

diff --git a/tests/TestSuite_ipfrag.py b/tests/TestSuite_ipfrag.py
index cbcd5fe..8ad2e82 100644
--- a/tests/TestSuite_ipfrag.py
+++ b/tests/TestSuite_ipfrag.py
@@ -129,10 +129,13 @@ l3fwd_ipv4_route_array[] = {\\\n"
         numPortThread = len([P0, P1]) / len(cores)
         result = True
         errString = ''
+        eal_param = ""
+        for i in [P0, P1]:
+            eal_param += " -w %s" % self.dut.ports_info[i]['pci']
 
         # run ipv4_frag
-        self.dut.send_expect("examples/ip_fragmentation/build/ip_fragmentation -c %s -n %d -- -p %s -q %s" % (
-            coremask, self.dut.get_memory_channels(), portmask, int(numPortThread)), "Link Up", 120)
+        self.dut.send_expect("examples/ip_fragmentation/build/ip_fragmentation -c %s -n %d %s -- -p %s -q %s" % (
+            coremask, self.dut.get_memory_channels(), eal_param, portmask, int(numPortThread)), "Link Up", 120)
 
         time.sleep(2)
         self.txItf = self.tester.get_interface(self.tester.get_local_port(P0))
-- 
2.17.1


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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-15 15:52 [dts] [PATCH V1] tests/TestSuite.ipfrag.py add -w option in set_up_all method Ling, WeiX
2020-07-17 10:40 Ling, WeiX

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox