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 797E5A046B for ; Fri, 28 Jun 2019 09:13:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 53F6A1B9AB; Fri, 28 Jun 2019 09:13:43 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 71FF01B9AB for ; Fri, 28 Jun 2019 09:13:41 +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 x5S7CaLc027617; Fri, 28 Jun 2019 00:13:40 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0818; bh=Z/t8g8btMFciJ7P2Jd8mwr+BuQBqjewGQaZqB64GRg8=; b=aLLaSUU8ho6hOXDZ3Z9Ts/tMMgLmWIxizFBvDUcHNB26hErQhBsWHaoYd3WQi7KpxNxm xUVdokZiA+aYZt5nKVCyUoibesTTC7doexDoSiuS0dbmBwQzeRu3R19n/TzkhoB9nqs9 GcERj7dwWT/e5zEtClQ98wZY7K7Vixm3jDlyAkJKnTYWl1rIPY8teWdhMo/f/upTIBmf KDccealgTfXR82lbBeVU3FYbZYCqDsokySP0WfuoFpfiGse7s3gahrPtBceaioL8NhZi vA80kUQwVCNZ1Wtm3zVWlIL+mTZ922gBkYswAoJFjOs+5KOkIxRhsrVjNujiGZd6lwRk 0Q== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2tcvnhc31h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 28 Jun 2019 00:13:40 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 28 Jun 2019 00:13:39 -0700 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.1367.3 via Frontend Transport; Fri, 28 Jun 2019 00:13:39 -0700 Received: from dut1171.mv.qlogic.com (unknown [10.112.88.18]) by maili.marvell.com (Postfix) with ESMTP id 193AF3F7040; Fri, 28 Jun 2019 00:13:39 -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 x5S7Dcpw025287; Fri, 28 Jun 2019 00:13:38 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x5S7Dc4G025286; Fri, 28 Jun 2019 00:13:38 -0700 From: Yash Sharma To: CC: , yash Date: Fri, 28 Jun 2019 00:13:32 -0700 Message-ID: <20190628071332.25246-2-ysharma@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190628071332.25246-1-ysharma@marvell.com> References: <20190628071332.25246-1-ysharma@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-28_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