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 5B2BFA3201 for ; Mon, 21 Oct 2019 04:24:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 51AD1F3E; Mon, 21 Oct 2019 04:24:24 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 2795DF04 for ; Mon, 21 Oct 2019 04:24:22 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2019 19:24:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,321,1566889200"; d="scan'208";a="209343787" Received: from ubuntu.sh.intel.com ([10.239.250.27]) by fmsmga001.fm.intel.com with ESMTP; 20 Oct 2019 19:24:18 -0700 From: Peng Zhihong To: dts@dpdk.org Cc: Peng Zhihong Date: Mon, 21 Oct 2019 03:24:50 -0700 Message-Id: <20191021102450.22197-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 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index bdbbea3..5898511 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -546,10 +546,16 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): mtus = [1519, 2048] mtu_threshold = 2022 offset = 0 - ice_eth_overhead = 8 + if self.nic in ['powerville', 'springville']: mtu_threshold = 2026 offset = 4 + elif self.nic in ['columbiaville_25g', 'columbiaville_100g']: + #jira DPDK-16219 + offset = 8 + else: + pass + for index in range(len(self.ports)): port = self.ports[index] # change mtu @@ -573,10 +579,7 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator): pkt.send_pkt(self.tester, tx_port=intf, count=4) rx_pkts, _ = self.strip_portstats(index) self.verify(rx_pkts == ori_rx_pkts + 4, "Packet match mtu not forwarded as expected") - if self.nic in ['columbiaville_25g', 'columbiaville_100g']: - pkt = Packet(pkt_type='UDP', pkt_len=mtu + ice_eth_overhead + 1 + HEADER_SIZE['eth'] + offset) - else: - pkt = Packet(pkt_type='UDP', pkt_len=mtu + 1 + HEADER_SIZE['eth'] + offset) + pkt = Packet(pkt_type='UDP', pkt_len=mtu + 1 + HEADER_SIZE['eth'] + offset) pkt.send_pkt(self.tester, tx_port=intf, count=4) rx_pkts_over, _ = self.strip_portstats(index) self.verify(rx_pkts == rx_pkts_over, "Packet over mtu should not be forwarded") -- 2.17.1