* [dts] [PATCH V1] tests/ip_pipeline: change the config file
@ 2019-03-26 6:34 Wenjie Li
2019-03-26 7:55 ` Zhu, ShuaiX
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Wenjie Li @ 2019-03-26 6:34 UTC (permalink / raw)
To: dts; +Cc: Wenjie Li
1. install vfio-pci driver to VF before test
2. change the config file l2fwd.cli
Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
---
tests/TestSuite_ip_pipeline.py | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/tests/TestSuite_ip_pipeline.py b/tests/TestSuite_ip_pipeline.py
index 37f5e3f..390c69d 100644
--- a/tests/TestSuite_ip_pipeline.py
+++ b/tests/TestSuite_ip_pipeline.py
@@ -127,6 +127,7 @@ class TestIPPipeline(TestCase):
This is to set up vf environment.
The pf is bound to dpdk driver.
"""
+ self.dut.send_expect("modprobe vfio-pci","# ")
if driver == 'default':
for port_id in self.dut_ports:
port = self.dut.ports_info[port_id]['port']
@@ -488,13 +489,14 @@ class TestIPPipeline(TestCase):
VF l2fwd pipeline, PF bound to DPDK driver
"""
self.setup_env(self.port_nums, driver=self.drivername)
- cmd = "sed -i -e 's/0000:02:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[0][0].pci
+ self.dut.send_expect("sed -i '/^link LINK/d' ./examples/ip_pipeline/examples/l2fwd.cli", "# ", 20)
+ cmd = "sed -i '/mempool MEMPOOL0/a\link LINK3 dev %s rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[3][0].pci
self.dut.send_expect(cmd, "# ", 20)
- cmd = "sed -i -e 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[1][0].pci
+ cmd = "sed -i '/mempool MEMPOOL0/a\link LINK2 dev %s rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[2][0].pci
self.dut.send_expect(cmd, "# ", 20)
- cmd = "sed -i -e 's/0000:06:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[2][0].pci
+ cmd = "sed -i '/mempool MEMPOOL0/a\link LINK1 dev %s rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[1][0].pci
self.dut.send_expect(cmd, "# ", 20)
- cmd = "sed -i -e 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[3][0].pci
+ cmd = "sed -i '/mempool MEMPOOL0/a\link LINK0 dev %s rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[0][0].pci
self.dut.send_expect(cmd, "# ", 20)
TESTPMD = "./%s/app/testpmd" % self.target
@@ -569,13 +571,14 @@ class TestIPPipeline(TestCase):
VF l2fwd pipeline, PF bound to kernel driver
"""
self.setup_env(self.port_nums, driver='default')
- cmd = "sed -i -e 's/0000:02:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[0][0].pci
+ self.dut.send_expect("sed -i '/^link LINK/d' ./examples/ip_pipeline/examples/l2fwd.cli", "# ", 20)
+ cmd = "sed -i '/mempool MEMPOOL0/a\link LINK3 dev %s rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[3][0].pci
self.dut.send_expect(cmd, "# ", 20)
- cmd = "sed -i -e 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[1][0].pci
+ cmd = "sed -i '/mempool MEMPOOL0/a\link LINK2 dev %s rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[2][0].pci
self.dut.send_expect(cmd, "# ", 20)
- cmd = "sed -i -e 's/0000:06:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[2][0].pci
+ cmd = "sed -i '/mempool MEMPOOL0/a\link LINK1 dev %s rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[1][0].pci
self.dut.send_expect(cmd, "# ", 20)
- cmd = "sed -i -e 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[3][0].pci
+ cmd = "sed -i '/mempool MEMPOOL0/a\link LINK0 dev %s rxq 1 128 MEMPOOL0 txq 1 512 promiscuous on' ./examples/ip_pipeline/examples/l2fwd.cli" % self.sriov_vfs_port[0][0].pci
self.dut.send_expect(cmd, "# ", 20)
IP_PIPELINE = "./examples/ip_pipeline/build/ip_pipeline"
--
2.17.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] tests/ip_pipeline: change the config file
2019-03-26 6:34 [dts] [PATCH V1] tests/ip_pipeline: change the config file Wenjie Li
@ 2019-03-26 7:55 ` Zhu, ShuaiX
2019-04-01 3:16 ` Li, WenjieX A
2019-04-03 16:52 ` Tu, Lijuan
2 siblings, 0 replies; 4+ messages in thread
From: Zhu, ShuaiX @ 2019-03-26 7:55 UTC (permalink / raw)
To: Li, WenjieX A, dts; +Cc: Li, WenjieX A, Zhu, ShuaiX
Tested-by: Zhu, ShuaiX <shuaix.zhu@intel.com>
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li
> Sent: Tuesday, March 26, 2019 2:34 PM
> To: dts@dpdk.org
> Cc: Li, WenjieX A <wenjiex.a.li@intel.com>
> Subject: [dts] [PATCH V1] tests/ip_pipeline: change the config file
>
> 1. install vfio-pci driver to VF before test 2. change the config file l2fwd.cli
>
> Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
> ---
> tests/TestSuite_ip_pipeline.py | 19 +++++++++++--------
> 1 file changed, 11 insertions(+), 8 deletions(-)
>
> diff --git a/tests/TestSuite_ip_pipeline.py b/tests/TestSuite_ip_pipeline.py
> index 37f5e3f..390c69d 100644
> --- a/tests/TestSuite_ip_pipeline.py
> +++ b/tests/TestSuite_ip_pipeline.py
> @@ -127,6 +127,7 @@ class TestIPPipeline(TestCase):
> This is to set up vf environment.
> The pf is bound to dpdk driver.
> """
> + self.dut.send_expect("modprobe vfio-pci","# ")
> if driver == 'default':
> for port_id in self.dut_ports:
> port = self.dut.ports_info[port_id]['port']
> @@ -488,13 +489,14 @@ class TestIPPipeline(TestCase):
> VF l2fwd pipeline, PF bound to DPDK driver
> """
> self.setup_env(self.port_nums, driver=self.drivername)
> - cmd = "sed -i -e
> 's/0000:02:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[0][0].pci
> + self.dut.send_expect("sed -i '/^link
> LINK/d' ./examples/ip_pipeline/examples/l2fwd.cli", "# ", 20)
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK3 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[3][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[1][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK2 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[2][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[2][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK1 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[1][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[3][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK0 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[0][0].pci
> self.dut.send_expect(cmd, "# ", 20)
>
> TESTPMD = "./%s/app/testpmd" % self.target @@ -569,13 +571,14
> @@ class TestIPPipeline(TestCase):
> VF l2fwd pipeline, PF bound to kernel driver
> """
> self.setup_env(self.port_nums, driver='default')
> - cmd = "sed -i -e
> 's/0000:02:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[0][0].pci
> + self.dut.send_expect("sed -i '/^link
> LINK/d' ./examples/ip_pipeline/examples/l2fwd.cli", "# ", 20)
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK3 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[3][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[1][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK2 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[2][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[2][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK1 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[1][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[3][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK0 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[0][0].pci
> self.dut.send_expect(cmd, "# ", 20)
>
> IP_PIPELINE = "./examples/ip_pipeline/build/ip_pipeline"
> --
> 2.17.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] tests/ip_pipeline: change the config file
2019-03-26 6:34 [dts] [PATCH V1] tests/ip_pipeline: change the config file Wenjie Li
2019-03-26 7:55 ` Zhu, ShuaiX
@ 2019-04-01 3:16 ` Li, WenjieX A
2019-04-03 16:52 ` Tu, Lijuan
2 siblings, 0 replies; 4+ messages in thread
From: Li, WenjieX A @ 2019-04-01 3:16 UTC (permalink / raw)
To: dts; +Cc: Li, WenjieX A
Tested-by: Li, WenjieX A <wenjiex.a.li@intel.com>
> -----Original Message-----
> From: Li, WenjieX A
> Sent: Tuesday, March 26, 2019 2:34 PM
> To: dts@dpdk.org
> Cc: Li, WenjieX A <wenjiex.a.li@intel.com>
> Subject: [dts][PATCH V1] tests/ip_pipeline: change the config file
>
> 1. install vfio-pci driver to VF before test 2. change the config file l2fwd.cli
>
> Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
> ---
> tests/TestSuite_ip_pipeline.py | 19 +++++++++++--------
> 1 file changed, 11 insertions(+), 8 deletions(-)
>
> diff --git a/tests/TestSuite_ip_pipeline.py b/tests/TestSuite_ip_pipeline.py index
> 37f5e3f..390c69d 100644
> --- a/tests/TestSuite_ip_pipeline.py
> +++ b/tests/TestSuite_ip_pipeline.py
> @@ -127,6 +127,7 @@ class TestIPPipeline(TestCase):
> This is to set up vf environment.
> The pf is bound to dpdk driver.
> """
> + self.dut.send_expect("modprobe vfio-pci","# ")
> if driver == 'default':
> for port_id in self.dut_ports:
> port = self.dut.ports_info[port_id]['port']
> @@ -488,13 +489,14 @@ class TestIPPipeline(TestCase):
> VF l2fwd pipeline, PF bound to DPDK driver
> """
> self.setup_env(self.port_nums, driver=self.drivername)
> - cmd = "sed -i -e
> 's/0000:02:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[0][0].pci
> + self.dut.send_expect("sed -i '/^link
> LINK/d' ./examples/ip_pipeline/examples/l2fwd.cli", "# ", 20)
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK3 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[3][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[1][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK2 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[2][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[2][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK1 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[1][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[3][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK0 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[0][0].pci
> self.dut.send_expect(cmd, "# ", 20)
>
> TESTPMD = "./%s/app/testpmd" % self.target @@ -569,13 +571,14 @@
> class TestIPPipeline(TestCase):
> VF l2fwd pipeline, PF bound to kernel driver
> """
> self.setup_env(self.port_nums, driver='default')
> - cmd = "sed -i -e
> 's/0000:02:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[0][0].pci
> + self.dut.send_expect("sed -i '/^link
> LINK/d' ./examples/ip_pipeline/examples/l2fwd.cli", "# ", 20)
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK3 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[3][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[1][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK2 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[2][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[2][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK1 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[1][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[3][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK0 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[0][0].pci
> self.dut.send_expect(cmd, "# ", 20)
>
> IP_PIPELINE = "./examples/ip_pipeline/build/ip_pipeline"
> --
> 2.17.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] tests/ip_pipeline: change the config file
2019-03-26 6:34 [dts] [PATCH V1] tests/ip_pipeline: change the config file Wenjie Li
2019-03-26 7:55 ` Zhu, ShuaiX
2019-04-01 3:16 ` Li, WenjieX A
@ 2019-04-03 16:52 ` Tu, Lijuan
2 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2019-04-03 16:52 UTC (permalink / raw)
To: Li, WenjieX A, dts; +Cc: Li, WenjieX A
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li
> Sent: Monday, March 25, 2019 11:34 PM
> To: dts@dpdk.org
> Cc: Li, WenjieX A <wenjiex.a.li@intel.com>
> Subject: [dts] [PATCH V1] tests/ip_pipeline: change the config file
>
> 1. install vfio-pci driver to VF before test 2. change the config file l2fwd.cli
>
> Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>
> ---
> tests/TestSuite_ip_pipeline.py | 19 +++++++++++--------
> 1 file changed, 11 insertions(+), 8 deletions(-)
>
> diff --git a/tests/TestSuite_ip_pipeline.py b/tests/TestSuite_ip_pipeline.py
> index 37f5e3f..390c69d 100644
> --- a/tests/TestSuite_ip_pipeline.py
> +++ b/tests/TestSuite_ip_pipeline.py
> @@ -127,6 +127,7 @@ class TestIPPipeline(TestCase):
> This is to set up vf environment.
> The pf is bound to dpdk driver.
> """
> + self.dut.send_expect("modprobe vfio-pci","# ")
> if driver == 'default':
> for port_id in self.dut_ports:
> port = self.dut.ports_info[port_id]['port']
> @@ -488,13 +489,14 @@ class TestIPPipeline(TestCase):
> VF l2fwd pipeline, PF bound to DPDK driver
> """
> self.setup_env(self.port_nums, driver=self.drivername)
> - cmd = "sed -i -e
> 's/0000:02:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[0][0].pci
> + self.dut.send_expect("sed -i '/^link
> LINK/d' ./examples/ip_pipeline/examples/l2fwd.cli", "# ", 20)
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK3 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[3][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[1][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK2 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[2][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[2][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK1 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[1][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[3][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK0 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[0][0].pci
> self.dut.send_expect(cmd, "# ", 20)
>
> TESTPMD = "./%s/app/testpmd" % self.target @@ -569,13 +571,14 @@
> class TestIPPipeline(TestCase):
> VF l2fwd pipeline, PF bound to kernel driver
> """
> self.setup_env(self.port_nums, driver='default')
> - cmd = "sed -i -e
> 's/0000:02:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[0][0].pci
> + self.dut.send_expect("sed -i '/^link
> LINK/d' ./examples/ip_pipeline/examples/l2fwd.cli", "# ", 20)
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK3 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[3][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:02:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[1][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK2 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[2][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.0/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[2][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK1 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[1][0].pci
> self.dut.send_expect(cmd, "# ", 20)
> - cmd = "sed -i -e
> 's/0000:06:00.1/%s/' ./examples/ip_pipeline/examples/l2fwd.cli" %
> self.sriov_vfs_port[3][0].pci
> + cmd = "sed -i '/mempool MEMPOOL0/a\link LINK0 dev %s rxq 1 128
> + MEMPOOL0 txq 1 512 promiscuous on'
> + ./examples/ip_pipeline/examples/l2fwd.cli" %
> + self.sriov_vfs_port[0][0].pci
> self.dut.send_expect(cmd, "# ", 20)
>
> IP_PIPELINE = "./examples/ip_pipeline/build/ip_pipeline"
> --
> 2.17.2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-04-03 16:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-26 6:34 [dts] [PATCH V1] tests/ip_pipeline: change the config file Wenjie Li
2019-03-26 7:55 ` Zhu, ShuaiX
2019-04-01 3:16 ` Li, WenjieX A
2019-04-03 16:52 ` Tu, Lijuan
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).