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 207468D8D for ; Wed, 14 Oct 2015 05:15:17 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 13 Oct 2015 20:15:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,681,1437462000"; d="scan'208";a="580288725" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by FMSMGA003.fm.intel.com with ESMTP; 13 Oct 2015 20:15:16 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t9E3FEWs011557; Wed, 14 Oct 2015 11:15:14 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t9E3FB27019171; Wed, 14 Oct 2015 11:15:13 +0800 Received: (from dayuqiu@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t9E3FBje019167; Wed, 14 Oct 2015 11:15:11 +0800 From: Michael Qiu To: dts@dpdk.org Date: Wed, 14 Oct 2015 11:15:09 +0800 Message-Id: <1444792509-19136-1-git-send-email-michael.qiu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] jumboframes: Fix bug for fm10k NIC 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, 14 Oct 2015 03:15:18 -0000 For Ruby Rapid, in Testpoint should run "set port config 1,5 max_frame_size 9000" and "set port config 1,5,20,22 rx_cut_through off" Singed-off-by: Michael Qiu --- tests/TestSuite_jumboframes.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py index c5c70b9..e9a6abf 100644 --- a/tests/TestSuite_jumboframes.py +++ b/tests/TestSuite_jumboframes.py @@ -93,7 +93,9 @@ class TestJumboframes(TestCase): p1rx_err -= gp1rx_err if received: - self.verify(p0tx_pkts == p1rx_pkts and p0tx_bytes == pktsize and p1rx_bytes == pktsize, + #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") else: #self.verify(p0tx_pkts == p1rx_pkts and (p1rx_err == 1 or p1rx_pkts == 0), @@ -152,10 +154,12 @@ class TestJumboframes(TestCase): This case aims to test transmitting jumbo frame packet on testpmd without jumbo frame support. """ - self.pmdout.start_testpmd("Default", "--max-pkt-len=%d" % (ETHER_STANDARD_MTU)) + # RRC has no ability to set the max pkt len to hardware if self.nic == "redrockcanyou": - self.dut.send_expect("set promisc all off", "testpmd> ") - self.dut.send_expect("set fwd mac", "testpmd> ") + print dts.RED("fm10k not support this case\n") + return + self.pmdout.start_testpmd("Default", "--max-pkt-len=%d" % (ETHER_STANDARD_MTU)) + self.dut.send_expect("set fwd mac", "testpmd> ") self.dut.send_expect("start", "testpmd> ") self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1, False) -- 1.9.3