From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 97C3BA00B8; Mon, 28 Oct 2019 02:56:09 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4FFDB1BF07; Mon, 28 Oct 2019 02:56:09 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 11D971BF06 for ; Mon, 28 Oct 2019 02:56:07 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Oct 2019 18:56:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,238,1569308400"; d="scan'208";a="211300386" Received: from unknown (HELO dpdk-meijianwei-tester.sh.intel.com) ([10.240.179.33]) by orsmga002.jf.intel.com with ESMTP; 27 Oct 2019 18:56:06 -0700 From: Jianwei Mei To: dts@dpdk.org Cc: Jianwei Mei Date: Mon, 28 Oct 2019 18:41:19 +0800 Message-Id: <1572259279-3690-1-git-send-email-jianweix.mei@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/TestSuite_l3fwd:ipv6 has no layer IP-0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" ipv6 has no layer IP-0 Signed-off-by: Jianwei Mei --- 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