test suite reviews and discussions
 help / color / Atom feed
* [dts]  [PATCH V1] tests/port_representor:set the number of mbufs
@ 2020-01-10  7:16 Xie Wei
  2020-01-10  7:29 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Xie Wei @ 2020-01-10  7:16 UTC (permalink / raw)
  To: dts; +Cc: Haiyang Zhao, Xie Wei

From: Haiyang Zhao <haiyangx.zhao@intel.com>

Set the number of mbufs to fix not enough memory on i686 architecture

Signed-off-by: Xie Wei <weix.xie@intel.com>
---
 tests/TestSuite_port_representor.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_port_representor.py b/tests/TestSuite_port_representor.py
index 4bf7274..893123a 100644
--- a/tests/TestSuite_port_representor.py
+++ b/tests/TestSuite_port_representor.py
@@ -104,14 +104,14 @@ class TestPortRepresentor(TestCase):
         self.vf_flag = 0
 
     def testpmd_pf(self):
-        self.pmdout_pf.start_testpmd("Default", eal_param="-w %s,representor=0-1" % self.pf_pci, param="--port-topology=chained")
+        self.pmdout_pf.start_testpmd("Default", eal_param="-w %s,representor=0-1" % self.pf_pci, param="--port-topology=chained --total-num-mbufs=120000")
 
     def testpmd_vf0(self):
-        self.out_vf0 = self.pmdout_vf0.start_testpmd("Default", eal_param="-w %s --file-prefix testpmd-vf0" % self.vfs_pci[0])
+        self.out_vf0 = self.pmdout_vf0.start_testpmd("Default", eal_param="-w %s --file-prefix testpmd-vf0" % self.vfs_pci[0], param="--total-num-mbufs=120000")
         self.vf0_mac = self.pmdout_vf0.get_port_mac(0)
 
     def testpmd_vf1(self):
-        self.out_vf1 = self.pmdout_vf1.start_testpmd("Default", eal_param="-w %s --file-prefix testpmd-vf1" % self.vfs_pci[1])
+        self.out_vf1 = self.pmdout_vf1.start_testpmd("Default", eal_param="-w %s --file-prefix testpmd-vf1" % self.vfs_pci[1], param="--total-num-mbufs=120000")
         self.vf1_mac = self.pmdout_vf1.get_port_mac(0)
 
     def check_port_stats(self):
-- 
2.17.2


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

* Re: [dts] [PATCH V1] tests/port_representor:set the number of mbufs
  2020-01-10  7:16 [dts] [PATCH V1] tests/port_representor:set the number of mbufs Xie Wei
@ 2020-01-10  7:29 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-01-10  7:29 UTC (permalink / raw)
  To: Xie, WeiX, dts; +Cc: Zhao, HaiyangX, Xie, WeiX

applied

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xie Wei
> Sent: Friday, January 10, 2020 3:16 PM
> To: dts@dpdk.org
> Cc: Zhao, HaiyangX <haiyangx.zhao@intel.com>; Xie, WeiX
> <weix.xie@intel.com>
> Subject: [dts] [PATCH V1] tests/port_representor:set the number of mbufs
> 
> From: Haiyang Zhao <haiyangx.zhao@intel.com>
> 
> Set the number of mbufs to fix not enough memory on i686 architecture
> 
> Signed-off-by: Xie Wei <weix.xie@intel.com>
> ---
>  tests/TestSuite_port_representor.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_port_representor.py
> b/tests/TestSuite_port_representor.py
> index 4bf7274..893123a 100644
> --- a/tests/TestSuite_port_representor.py
> +++ b/tests/TestSuite_port_representor.py
> @@ -104,14 +104,14 @@ class TestPortRepresentor(TestCase):
>          self.vf_flag = 0
> 
>      def testpmd_pf(self):
> -        self.pmdout_pf.start_testpmd("Default", eal_param="-
> w %s,representor=0-1" % self.pf_pci, param="--port-topology=chained")
> +        self.pmdout_pf.start_testpmd("Default", eal_param="-
> w %s,representor=0-1" % self.pf_pci, param="--port-topology=chained --
> total-num-mbufs=120000")
> 
>      def testpmd_vf0(self):
> -        self.out_vf0 = self.pmdout_vf0.start_testpmd("Default", eal_param="-
> w %s --file-prefix testpmd-vf0" % self.vfs_pci[0])
> +        self.out_vf0 = self.pmdout_vf0.start_testpmd("Default", eal_param="-
> w %s --file-prefix testpmd-vf0" % self.vfs_pci[0], param="--total-num-
> mbufs=120000")
>          self.vf0_mac = self.pmdout_vf0.get_port_mac(0)
> 
>      def testpmd_vf1(self):
> -        self.out_vf1 = self.pmdout_vf1.start_testpmd("Default", eal_param="-
> w %s --file-prefix testpmd-vf1" % self.vfs_pci[1])
> +        self.out_vf1 = self.pmdout_vf1.start_testpmd("Default", eal_param="-
> w %s --file-prefix testpmd-vf1" % self.vfs_pci[1], param="--total-num-
> mbufs=120000")
>          self.vf1_mac = self.pmdout_vf1.get_port_mac(0)
> 
>      def check_port_stats(self):
> --
> 2.17.2


^ 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-01-10  7:16 [dts] [PATCH V1] tests/port_representor:set the number of mbufs Xie Wei
2020-01-10  7:29 ` Tu, Lijuan

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