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 B97C6A058B; Wed, 25 Mar 2020 14:54:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2BD6E2BAE; Wed, 25 Mar 2020 14:54:42 +0100 (CET) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70041.outbound.protection.outlook.com [40.107.7.41]) by dpdk.org (Postfix) with ESMTP id 44F6CF3E for ; Wed, 25 Mar 2020 14:54:40 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T7DJk1B2PtEqo/AxIzozadxBjs8PjbRqx9p5evFVBSKyPBeCLi8AdHsXneKcWS3P52graXP2Dpt9RnofRfq4fdOKdnzO3+uNR9gf2Ww5rADMUU3kdICFb3TQRlvjzQg0HQHz2uj00gwsn5a/n58fywA9hcwCwnmyJfl30o0X1StTIx41rwcEt/ufpMFOWtJDB46VX49YNJWUgvH4XngdYP7AY9Bl79lSKg/e2LA5UTNs+3M+jcQ78f4AVkPyyOor/Vy/2OkVpp6+mf/wFyW/GK6xHHKRbfA+TuN4oGby62FCgxbTfrSIwskcfvgwlwG3e3Ur6BaJmqlU82x2PtQcoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wjDkUA13q7S63ILYO3ARFyPKpV03Or8sBPmmHR5c3Sc=; b=KM0DQiHWJ+B7i7kRkpNCF2uirqEpe0H8//ar8Ey5U7WCWMSnkMJhN8658Nv6YmPU8wL5sIxdFDd91ykCKyjioCWoWB2lXH0BJLkpHRdOKbvXPoqb+fgH4zZDCFtGbx3RYx8bJdUGBfvLywukirdLiEEUoG8MhLKFul6qUFolQXzbliYsh6TJZf3lyo3fjgulPNYBB1B1Evj1M0OKV3SHkpABbiFnROuVm5J9K/1x1knKjsE06MY4G+ARWJdFJ8XrpiPu3niB7w0fHVhs5nXaucBcn3mFwRqLHyVfLG7srMsA0wE/+8YlAYFTJTgSSWN53m5Cl7USJgGi7gT8TRfpgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wjDkUA13q7S63ILYO3ARFyPKpV03Or8sBPmmHR5c3Sc=; b=s9LkUQzQNCczM5njVvxdMn1HDpmVG8Ii9WzIB5m/Q00r2sS3FYdil+6TKDGd65bpojHKSbIcoyuLS0L98UQsS+5P+0Sxt9LlAzNA9RNWBTmBm+y5Dx17ao8u/WSl0Td3CPSwJG5u90oY6W45g2bbVpuqzC0Akmk79yTsFMVY/yw= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (10.255.118.11) by VE1PR04MB6734.eurprd04.prod.outlook.com (20.179.234.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.22; Wed, 25 Mar 2020 13:54:39 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::8060:a35c:4858:c490]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::8060:a35c:4858:c490%7]) with mapi id 15.20.2835.023; Wed, 25 Mar 2020 13:54:39 +0000 From: Akhil Goyal To: Nicolas Chautru , "thomas@monjalon.net" , "dev@dpdk.org" CC: "ferruh.yigit@intel.com" Thread-Topic: [PATCH v3 09/14] test-bbdev: support for offload test for LDPC Thread-Index: AQHV8lZzT0Uwh/tvr0mab/Q5t5E+hahZdELw Date: Wed, 25 Mar 2020 13:54:39 +0000 Message-ID: References: <1582778348-113547-15-git-send-email-nicolas.chautru@intel.com> <1583348102-13253-1-git-send-email-nicolas.chautru@intel.com> <1583348102-13253-10-git-send-email-nicolas.chautru@intel.com> In-Reply-To: <1583348102-13253-10-git-send-email-nicolas.chautru@intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [45.118.166.92] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 6559a69d-270a-4596-9fff-08d7d0c40fca x-ms-traffictypediagnostic: VE1PR04MB6734: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2582; x-forefront-prvs: 0353563E2B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(376002)(366004)(39860400002)(136003)(346002)(81156014)(86362001)(8936002)(44832011)(66476007)(478600001)(8676002)(66446008)(64756008)(76116006)(66556008)(81166006)(52536014)(66946007)(33656002)(5660300002)(55016002)(4326008)(7696005)(6506007)(110136005)(316002)(9686003)(2906002)(26005)(186003)(71200400001); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6734; H:VE1PR04MB6639.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Q/aoqaT8nqwZZJX+QcHOUUefbN4KUK8yrROVUjErvjpfk8e/h5AAg+MakWlczUA7DTimSR/3GPv6jLmGUKi1Ix0SLf2JI745aHefQcuaMmY0ncNDNaj9W7izpr4y6Tgsr3BELagR3u4A/oUCXiY5wGfDdr8UZhz1+ZlFOnpFj8DYlfz8oo+QpUzKu45k0yy+XYlMPpbyXk134EhSjfhZxMow2Pry9CAyHBf0ygi7XbfC8ljj2Sxi1tpONMFQXM5j1XSH4ohOYanhdy6ERcRIX0marsflFwy5uRndiyer39hmKMSIT5E0NNsltva++y48zpI3JmOCIsTsWA3MZg8dqXSbshDEHlJZOI7G63YG/2qLtX6uPBYKO5qIoSjRGf1e+Kn7deRRyaYT1kypr99/xbuVCbqRsn9AxiTN/AS9Uop0YfUobPR//KMJFqYyeTjQ x-ms-exchange-antispam-messagedata: K8mX6mKLWijBCdpVunDLLedMs37gk4UdFYUPC3Qz/K4/9uOQvdrV0f8/T8363sGfQoD2tFAT37qFigbtgYR4Qe1K16hxIWfvkYT2FrK7apQLEUTB2yCsdaiqNL5A5eqDB0SuIgp46wycOW7Ht4wQ1Q== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6559a69d-270a-4596-9fff-08d7d0c40fca X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2020 13:54:39.1770 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: If45khQozHnuKoK3ToHoh6fNKLlRO4TJAV99wolhnLffPTchZ/HGhp3W3yQ5Ys6100U9j+nVAjrMCKigB7EhXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6734 Subject: Re: [dpdk-dev] [PATCH v3 09/14] test-bbdev: support for offload test for LDPC X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > @@ -4552,7 +4552,12 @@ typedef int (test_case_function)(struct active_dev= ice > *ad, >=20 > if (unlikely(num_to_process - deq_total < burst_sz)) > burst_sz =3D num_to_process - deq_total; > - rte_bbdev_dequeue_dec_ops(dev_id, queue_id, ops, burst_sz); > + if (op_type =3D=3D RTE_BBDEV_OP_TURBO_DEC) This check should be similar to enc_ops LDPC should be checked instead of TURBO > + rte_bbdev_dequeue_dec_ops(dev_id, queue_id, ops, > + burst_sz); > + else > + rte_bbdev_dequeue_ldpc_dec_ops(dev_id, queue_id, > ops, > + burst_sz); >=20 > deq_last_time =3D rte_rdtsc_precise() - deq_start_time; > *deq_max_time =3D RTE_MAX(*deq_max_time, deq_last_time); > @@ -4567,7 +4572,7 @@ typedef int (test_case_function)(struct active_devi= ce > *ad, > offload_latency_empty_q_test_enc(uint16_t dev_id, uint16_t queue_id, > const uint16_t num_to_process, uint16_t burst_sz, > uint64_t *deq_total_time, uint64_t *deq_min_time, > - uint64_t *deq_max_time) > + uint64_t *deq_max_time, const enum rte_bbdev_op_type > op_type) > { > int i, deq_total; > struct rte_bbdev_enc_op *ops[MAX_BURST]; > @@ -4580,7 +4585,12 @@ typedef int (test_case_function)(struct active_dev= ice > *ad, >=20 > if (unlikely(num_to_process - deq_total < burst_sz)) > burst_sz =3D num_to_process - deq_total; > - rte_bbdev_dequeue_enc_ops(dev_id, queue_id, ops, burst_sz); > + if (op_type =3D=3D RTE_BBDEV_OP_LDPC_ENC) > + rte_bbdev_dequeue_ldpc_enc_ops(dev_id, queue_id, > ops, > + burst_sz); > + else > + rte_bbdev_dequeue_enc_ops(dev_id, queue_id, ops, > + burst_sz); >=20 > deq_last_time =3D rte_rdtsc_precise() - deq_start_time; > *deq_max_time =3D RTE_MAX(*deq_max_time, deq_last_time);