test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/TestSuite_l3fwd:ipv6 has no layer IP-0
@ 2019-10-28 10:41 Jianwei Mei
  0 siblings, 0 replies; only message in thread
From: Jianwei Mei @ 2019-10-28 10:41 UTC (permalink / raw)
  To: dts; +Cc: Jianwei Mei

ipv6 has no layer IP-0

Signed-off-by: Jianwei Mei <jianweix.mei@intel.com>
---
 tests/TestSuite_l3fwd.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_l3fwd.py b/tests/TestSuite_l3fwd.py
index e40b057..a9016d4 100644
--- a/tests/TestSuite_l3fwd.py
+++ b/tests/TestSuite_l3fwd.py
@@ -277,6 +277,8 @@ class TestL3fwd(TestCase):
                 tgenInput = self.prepare_stream(pcaps)
 
                 vm_config = self.set_fields()
+                if l3_proto == "ipv6":
+                    vm_config = None
                 # clear streams before add new streams
                 self.tester.pktgen.clear_streams()
                 # run packet generator
@@ -310,7 +312,7 @@ class TestL3fwd(TestCase):
         rtCmdLines, core_mask = self.perpare_commandline(len(valports))
 
         for frame_size in self.frame_sizes:
-            if mode == "ipv6" and frame_size == 64:
+            if l3_proto == "ipv6" and frame_size == 64:
                 frame_size += 2
             for cores in rtCmdLines.keys():
                 # in order to save time, only some of the cases will be run.
@@ -331,6 +333,8 @@ class TestL3fwd(TestCase):
                     tgenInput = self.prepare_stream(pcaps)
 
                     vm_config = self.set_fields()
+                    if l3_proto == "ipv6":
+                        vm_config = None
                     # clear streams before add new streams
                     self.tester.pktgen.clear_streams()
                     # run packet generator
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28 10:41 [dts] [PATCH V1] tests/TestSuite_l3fwd:ipv6 has no layer IP-0 Jianwei Mei

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