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 61148A3201 for ; Mon, 21 Oct 2019 05:23:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 267CBF3E; Mon, 21 Oct 2019 05:23:13 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 02C09F11 for ; Mon, 21 Oct 2019 05:23:11 +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 fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2019 20:23:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,322,1566889200"; d="scan'208";a="280843069" Received: from ubuntu.sh.intel.com ([10.239.250.27]) by orsmga001.jf.intel.com with ESMTP; 20 Oct 2019 20:23:09 -0700 From: Peng Zhihong To: dts@dpdk.org Cc: Peng Zhihong Date: Mon, 21 Oct 2019 04:21:43 -0700 Message-Id: <20191021112143.27230-1-zhihongx.peng@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] Modify the clv offset code 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" Signed-off-by: Peng Zhihong --- tests/TestSuite_userspace_ethtool.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index 116fd3a..94918e9 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -546,9 +546,16 @@ 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']: + #ICE_ETH_OVERHEAD is 8 + offset = 8 + else: + pass + for index in range(len(self.ports)): port = self.ports[index] # change mtu @@ -561,10 +568,9 @@ 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>") + self.dut.send_expect("open %s" % index, "EthApp>") time.sleep(5) ori_rx_pkts, _ = self.strip_portstats(index) pkt_size = mtu + HEADER_SIZE['eth'] + offset -- 2.17.1