From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 2F0533784 for ; Wed, 16 Sep 2015 10:51:02 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 16 Sep 2015 01:51:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,538,1437462000"; d="scan'208";a="645823556" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga003.jf.intel.com with ESMTP; 16 Sep 2015 01:50:59 -0700 From: changru To: dts@dpdk.org Date: Wed, 16 Sep 2015 16:46:43 +0800 Message-Id: <1442393203-22442-1-git-send-email-changrux.fan@intel.com> X-Mailer: git-send-email 1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dts] =?UTF-8?q?=5B=91dts=92=5D=20Fix=20checksum=5Fchecking=20failed=20issue?= 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: , X-List-Received-Date: Wed, 16 Sep 2015 08:51:02 -0000 Signed-off-by: changru --- tests/TestSuite_pmd.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_pmd.py b/tests/TestSuite_pmd.py index afb2450..525ed02 100644 --- a/tests/TestSuite_pmd.py +++ b/tests/TestSuite_pmd.py @@ -375,7 +375,7 @@ class TestPmd(TestCase,IxiaPacketGenerator): checksum = '' if checksum_test: - checksum = 'chksum=0x0' + checksum = 'chksum=0x1' self.tester.scapy_foreground() self.tester.scapy_append('nutmac="%s"' % mac) @@ -402,8 +402,12 @@ class TestPmd(TestCase,IxiaPacketGenerator): "packet pass assert error, %d RX packets, %d TX packets" % (p1rx_pkts, p0tx_pkts)) if checksum_test: - self.verify(p1rx_bytes == frame_size - 4, - "packet pass assert error, expected %d RX bytes, actual %d" % (frame_size - 4, p1rx_bytes)) + if self.nic in ["powerville", "springville", "kawela_4"]: + self.verify(p1rx_bytes == frame_size, + "packet pass assert error, expected %d RX bytes, actual %d" % (frame_size, p1rx_bytes)) + else: + self.verify(p1rx_bytes == frame_size - 4, + "packet pass assert error, expected %d RX bytes, actual %d" % (frame_size - 4, p1rx_bytes)) else: self.verify(p1rx_bytes == frame_size, "packet pass assert error, expected %d RX bytes, actual %d" % (frame_size, p1rx_bytes)) -- 2.1.0