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 00709A32A2 for ; Fri, 25 Oct 2019 09:07:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DD5B51E54E; Fri, 25 Oct 2019 09:07:40 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 99F981E54A for ; Fri, 25 Oct 2019 09:07:39 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Oct 2019 00:07:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,227,1569308400"; d="scan'208";a="228803683" Received: from ubuntu.sh.intel.com ([10.239.250.27]) by fmsmga002.fm.intel.com with ESMTP; 25 Oct 2019 00:07:37 -0700 From: Peng Zhihong To: dts@dpdk.org Cc: Peng Zhihong Date: Fri, 25 Oct 2019 08:08:12 -0700 Message-Id: <20191025150812.17223-1-zhihongx.peng@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] add support for cvl 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" add support for cvl Signed-off-by: Peng Zhihong --- tests/TestSuite_userspace_ethtool.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index 116fd3a..9a30199 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -546,9 +546,14 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): mtus = [1519, 2048] mtu_threshold = 2022 offset = 0 + if self.nic in ['powerville', 'springville']: mtu_threshold = 2026 offset = 4 + elif self.nic in ['columbiaville_25g', 'columbiaville_100g']: + #mtu + ICE_ETH_OVERHEAD = mtu + HEADER_SIZE['eth'] + offset (ICE_ETH_OVERHEAD is 26) + offset = 8 + for index in range(len(self.ports)): port = self.ports[index] # change mtu @@ -561,12 +566,11 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): if mtu > mtu_threshold: if self.nic in ['powerville', 'springville']: mtu = mtu_threshold - self.dut.send_expect("stop %s" % index, "EthApp>") - self.dut.send_expect("mtu %d %d" % (index, mtu), "EthApp>") - self.dut.send_expect("open %s" % index, "EthApp>") + self.dut.send_expect("stop %s" % index, "EthApp>") self.dut.send_expect("mtu %d %d" % (index, mtu), "EthApp>") - time.sleep(5) + self.dut.send_expect("open %s" % index, "EthApp>") ori_rx_pkts, _ = self.strip_portstats(index) + time.sleep(5) pkt_size = mtu + HEADER_SIZE['eth'] + offset pkt = Packet(pkt_type='UDP', pkt_len=pkt_size) pkt.send_pkt(self.tester, tx_port=intf, count=4) -- 2.17.1