[V1,2/2] tests/virtio_user_as_exceptional_path: modify testsuite by DPDK changed
Checks
Context |
Check |
Description |
ci/Intel-dts-format-test |
success
|
Testing OK
|
ci/Intel-dts-pylama-test |
success
|
Testing OK
|
ci/Intel-dts-doc-test |
success
|
Testing OK
|
ci/Intel-dts-suite-test |
warning
|
SKIPPED
|
Commit Message
1.As DPDK commit 236bc417(app/testpmd: fix MAC header in checksum
forward engine),need to add `csum mac-swap off <port_id>` steps
in testsuite.
2.Delete the redundant white space to fix the error command issue.
Signed-off-by: Wei Ling <weix.ling@intel.com>
---
tests/TestSuite_virtio_user_as_exceptional_path.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
On Wed, 16 Nov 2022 10:01:30 +0800, Wei Ling <weix.ling@intel.com> wrote:
> 1.As DPDK commit 236bc417(app/testpmd: fix MAC header in checksum
> forward engine),need to add `csum mac-swap off <port_id>` steps
> in testsuite.
>
> 2.Delete the redundant white space to fix the error command issue.
>
> Signed-off-by: Wei Ling <weix.ling@intel.com>
Series applied, thanks
@@ -97,7 +97,7 @@ class TestVirtioUserAsExceptionalPath(TestCase):
testcmd = self.app_testpmd_path + " "
vdev = "--vdev=virtio_user0,mac=%s,path=/dev/vhost-net," % self.virtio_mac
eal_params = self.dut.create_eal_parameters(cores=core_mask, ports=[self.pci0])
- para = " queue_size=1024,queues=%s -- -i --rxd=1024 --txd=1024 %s" % (
+ para = "queue_size=1024,queues=%s -- -i --rxd=1024 --txd=1024 %s" % (
self.queue,
comment,
)
@@ -130,6 +130,8 @@ class TestVirtioUserAsExceptionalPath(TestCase):
self.vhost_user.send_expect("modprobe vhost-net", "#", 120)
self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120)
self.vhost_user.send_expect("set fwd csum", "testpmd> ", 120)
+ self.vhost_user.send_expect("csum mac-swap off 0", "testpmd> ", 120)
+ self.vhost_user.send_expect("csum mac-swap off 1", "testpmd> ", 120)
self.vhost_user.send_expect("stop", "testpmd> ", 120)
self.vhost_user.send_expect("port stop 0", "testpmd> ", 120)
self.vhost_user.send_expect("port stop 1", "testpmd> ", 120)