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 16322A046B for ; Thu, 27 Jun 2019 08:50:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BB3FBDED; Thu, 27 Jun 2019 08:50:38 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 0DCCB2AB for ; Thu, 27 Jun 2019 08:50:36 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5R6kX0v015866 for ; Wed, 26 Jun 2019 23:50:36 -0700 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=Z/t8g8btMFciJ7P2Jd8mwr+BuQBqjewGQaZqB64GRg8=; b=xH6qXpQiKTVM/9w7/FuVR7thPPC2JkVuWnthkfBaAI/pkSzgoJaOUdy9u+bAQ0bcxuLF TbDOl2HRhWJi5CVTuP1yxbF7lxRhEDm312NtAlI/L3jaJswwWLiW8tMp7U4gGOdMY4AP dKDDfbjIRJzCkx9z5tQxZsfd2DA1w3nX8tDVwc2BevIVXh14QC3PWFSn5ke4f0eVFCoZ c0y6ZrMHx7hn0CfmUXMbnn48CIAiMRhy0MXqhAsxrrvYGilL6CVCcFxGIyYELQnAJOcH WzlCTRTLsX0eUDKIaPmQZFEiven/U0x/tMF41RbYS1Vtn6P/VUXLSymY8X21z12yKV5o Vg== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2tcbgcb83x-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 26 Jun 2019 23:50:35 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 26 Jun 2019 23:50:33 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 26 Jun 2019 23:50:33 -0700 Received: from dut1171.mv.qlogic.com (unknown [10.112.88.18]) by maili.marvell.com (Postfix) with ESMTP id 0FC553F703F; Wed, 26 Jun 2019 23:50:33 -0700 (PDT) Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id x5R6oWJv030402; Wed, 26 Jun 2019 23:50:32 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x5R6oW9I030401; Wed, 26 Jun 2019 23:50:32 -0700 From: Yash Sharma To: , CC: , , yash Date: Wed, 26 Jun 2019 23:50:24 -0700 Message-ID: <20190627065024.30365-1-ysharma@marvell.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-27_02:, , signatures=0 Subject: [dts] [PATCH 1/1] Total Packet Length includes CRC(4 bytes) so no need of adding extra 4 bytes for fastlinq Adapters. 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: yash Signed-off-by: yash --- tests/TestSuite_jumboframes.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_jumboframes.py b/tests/TestSuite_jumboframes.py index cf4335a..1b5aab5 100644 --- a/tests/TestSuite_jumboframes.py +++ b/tests/TestSuite_jumboframes.py @@ -93,12 +93,18 @@ class TestJumboframes(TestCase): rx_err -= rx_err_ori if received: - self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts) - and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize )) - and ((rx_bytes + 4) == pktsize), - "packet pass assert error") + if self.nic.startswith('fastlinq'): + self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts) + and ( self.pmdout.check_tx_bytes(tx_bytes, pktsize )) + and (rx_bytes == pktsize), + "packet pass assert error") + else: + self.verify(self.pmdout.check_tx_bytes(tx_pkts, rx_pkts) + and ( self.pmdout.check_tx_bytes(tx_bytes + 4, pktsize )) + and ((rx_bytes + 4) == pktsize), + "packet pass assert error") else: - self.verify(rx_err == 1 or tx_pkts == 0, "packet drop assert error") + self.verify(rx_err == 1 or tx_pkts == 0, "packet drop assert error") return out # -- 1.8.3.1