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 E8C8FA0553; Mon, 17 Feb 2020 10:22:17 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AB6AC1DB82; Mon, 17 Feb 2020 10:22:17 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id D65271C037 for ; Mon, 17 Feb 2020 10:22:15 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Feb 2020 01:22:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,451,1574150400"; d="scan'208";a="348461279" Received: from unknown (HELO dpdk-xiaoqimai-tester.sh.intel.com) ([10.239.250.12]) by fmsmga001.fm.intel.com with ESMTP; 17 Feb 2020 01:22:13 -0800 From: Zeng Xiaoxiao To: dts@dpdk.org Cc: Zeng Xiaoxiao Date: Mon, 17 Feb 2020 17:22:42 +0800 Message-Id: <1581931362-191106-1-git-send-email-xiaoxiaox.zeng@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/userspace_ethtool:port_mtu suit columbiaville_100g 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" *.columbiaville_100g need set offset=8. Signed-off-by: Zeng Xiaoxiao --- tests/TestSuite_userspace_ethtool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index 8f87ac2..08d1514 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -578,7 +578,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): mtu_threshold = 2026 offset = 4 # RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + ICE_VLAN_TAG_SIZE * 2 - if self.nic in ["columbiaville_25g"]: + if self.nic in ["columbiaville_25g","columbiaville_100g"]: offset = 8 for index in range(len(self.ports)): port = self.ports[index] @@ -589,7 +589,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): self.tester.send_expect("ifconfig %s mtu 9000" % (intf), "# ") for mtu in mtus: # cvl should stop port before set mtu - if self.nic in ["columbiaville_25g"]: + if self.nic in ["columbiaville_25g","columbiaville_100g"]: self.dut.send_expect("stop %s" % index, "EthApp>") # The mtu threshold is 2022,When it is greater than 2022, the open/stop port is required. @@ -601,7 +601,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): self.dut.send_expect("open %s" % index, "EthApp>") self.dut.send_expect("mtu %d %d" % (index, mtu), "EthApp>") - if self.nic in ["columbiaville_25g"]: + if self.nic in ["columbiaville_25g","columbiaville_100g"]: self.dut.send_expect("open %s" % index, "EthApp>") time.sleep(5) -- 1.8.3.1