From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 6902EA00E6 for ; Mon, 15 Apr 2019 11:51:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 392B31B142; Mon, 15 Apr 2019 11:51:55 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 89F221B141 for ; Mon, 15 Apr 2019 11:51:53 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Apr 2019 02:51:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,353,1549958400"; d="scan'208";a="223627698" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 15 Apr 2019 02:51:51 -0700 From: changqingxwu To: dts@dpdk.org Cc: changqingxwu Date: Mon, 15 Apr 2019 17:56:04 +0800 Message-Id: <1555322164-25653-1-git-send-email-changqingx.wu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] vxlan:Optimization check inner l4 invalid 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" resetting 'rx_bad_*' stats after stop, this is consistent behavior with rest of the stats. It is not necessary to accumulate the results of Bad-l4csum after each stop. Signed-off-by: changqingxwu --- tests/TestSuite_vxlan.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index 8de8384..b4b852f 100644 --- a/tests/TestSuite_vxlan.py +++ b/tests/TestSuite_vxlan.py @@ -468,8 +468,7 @@ class TestVxlan(TestCase, IxiaPacketGenerator): # verify detected l4 invalid checksum if "inner_l4_invalid" in kwargs: self.verify(self.pmdout.get_pmd_value("Bad-l4csum:", out) - == self.l4err_num + 1, "Failed to count inner l4 chksum error") - self.l4err_num += 1 + == 1, "Failed to count inner l4 chksum error") # verify detected l3 invalid checksum if "ip_invalid" in kwargs: @@ -649,7 +648,6 @@ class TestVxlan(TestCase, IxiaPacketGenerator): 'PORT': self.portMask} self.dut.send_expect(pmd_cmd, "testpmd>", 30) self.iperr_num = 0 - self.l4err_num = 0 # disable vlan filter self.dut.send_expect('vlan set filter off %d' %self.dut_port, "testpmd") @@ -724,7 +722,6 @@ class TestVxlan(TestCase, IxiaPacketGenerator): 'PORT': self.portMask} self.dut.send_expect(pmd_cmd, "testpmd>", 30) self.iperr_num = 0 - self.l4err_num = 0 # disable vlan filter self.dut.send_expect('vlan set filter off %d' %self.dut_port, "testpmd") -- 2.17.2