From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 05D3393A4 for ; Fri, 13 Nov 2015 08:35:38 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 12 Nov 2015 23:35:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,286,1444719600"; d="scan'208";a="849600309" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 12 Nov 2015 23:35:15 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id tAD7ZD0c012991; Fri, 13 Nov 2015 15:35:13 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id tAD7ZBYD019321; Fri, 13 Nov 2015 15:35:13 +0800 Received: (from jingguox@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id tAD7ZBc6019317; Fri, 13 Nov 2015 15:35:11 +0800 From: Jingguo Fu To: dts@dpdk.org Date: Fri, 13 Nov 2015 15:35:09 +0800 Message-Id: <1447400109-19286-1-git-send-email-jingguox.fu@intel.com> X-Mailer: git-send-email 1.7.4.1 Cc: Jingguo Fu Subject: [dts] [DTS][PATCH] fix jumbo frame crc issue for fortville nics 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: Fri, 13 Nov 2015 07:35:39 -0000 Changes to be committed: modified: tests/TestSuite_jumboframes.py Signed-off-by: Jingguo Fu --- tests/TestSuite_jumboframes.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py index d9261e6..a295624 100644 --- a/tests/TestSuite_jumboframes.py +++ b/tests/TestSuite_jumboframes.py @@ -93,10 +93,12 @@ class TestJumboframes(TestCase): p1rx_err -= gp1rx_err if received: - #some nic like RRC always strip CRC, so it should be pktsize - 4 - size_equal = p0tx_bytes == p1rx_bytes and (p1rx_bytes == pktsize or p1rx_bytes == pktsize - 4) - self.verify(p0tx_pkts == p1rx_pkts and size_equal, - "packet pass assert error") + if self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single"]: + self.verify((p0tx_pkts == p1rx_pkts) and ((p0tx_bytes + 4) == pktsize) and (p1rx_bytes == pktsize), + "packet pass assert error") + else: + self.verify((p0tx_pkts == p1rx_pkts) and (p0tx_bytes == pktsize) and (p1rx_bytes == pktsize), + "packet pass assert error") else: #self.verify(p0tx_pkts == p1rx_pkts and (p1rx_err == 1 or p1rx_pkts == 0), self.verify(p1rx_err == 1 or p0tx_pkts == 0, "packet drop assert error") -- 1.9.3