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 5EDE4A04F9; Fri, 10 Jan 2020 06:10:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 242891252; Fri, 10 Jan 2020 06:10:00 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 5E1A61E88C for ; Fri, 10 Jan 2020 06:09:59 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00A56AAv008250 for ; Thu, 9 Jan 2020 21:09:58 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=9EyDpsK5nfgIMdkNWmtCWcR55CULpcd9h2RyI2XRUGA=; b=NT2lRwbpVPztCT5e46PCF3oitqv5Bb3NVXS6PFnAHmOb5gAFssWsZJKLZ9D+oAXIBw6V K/FqaVWn0GNFjCv2rjgS03RSHgcB6xYlXeEOmH5cAdPZyRGogClpE7SLScyiMZoaXKgx 8mWebEyA4H7EFNf41Z/zJ8nkqOQFm4X7XfVpmYtlIkxbjsdq7VKsFyaCgTFxnH1KB2En 7kTXe6x7Qd27JoxtAcMS0/IlznluW2hIgmXcnRZxQ9aItAhzsvTJRVsJp+t7L2Yd8L56 jtpRFrapBJeU/igIxQwd2Vs15py3yM1WjeHZt50agkZofdLjMM3DEZRjwE0c61w3BTG9 FA== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2xde1987uv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 09 Jan 2020 21:09:58 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 9 Jan 2020 21:09:57 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 9 Jan 2020 21:09:57 -0800 Received: from cavium.marvell.com (unknown [10.28.10.96]) by maili.marvell.com (Postfix) with ESMTP id 307BC3F703F; Thu, 9 Jan 2020 21:09:55 -0800 (PST) From: To: CC: , usurekha Date: Fri, 10 Jan 2020 10:36:01 +0530 Message-ID: <1578632761-5151-1-git-send-email-usurekha@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572 definitions=2020-01-10_01:2020-01-10, 2020-01-09 signatures=0 Subject: [dts] [PATCH] TestSuite_userspace_ethtool.py:Modified packet length for cavium_a063 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" From: usurekha Modified to required packet length for cavium_a063 Signed-off-by: usurekha --- tests/TestSuite_userspace_ethtool.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py index 248d1d1..53e37d2 100644 --- a/tests/TestSuite_userspace_ethtool.py +++ b/tests/TestSuite_userspace_ethtool.py @@ -594,7 +594,10 @@ 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") - pkt = Packet(pkt_type='UDP', pkt_len=mtu + 1 + HEADER_SIZE['eth'] + offset) + if (self.nic in ["cavium_a063","cavium_a064"]): + pkt = Packet(pkt_type='UDP', pkt_len=mtu + 9 + HEADER_SIZE['eth'] + offset) + else: + 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.7.4