From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0E3BB42641; Tue, 26 Sep 2023 10:12:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EF2024064E; Tue, 26 Sep 2023 10:12:16 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 565B040271 for ; Tue, 26 Sep 2023 10:12:15 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38PKGWoZ025962; Tue, 26 Sep 2023 01:12:14 -0700 Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2171.outbound.protection.outlook.com [104.47.56.171]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3t9yhm03em-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 01:12:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=feDwteAzTXmitagThSCzgwiQPGfAJV8gutWziyYhKTap5M22VeWBAHKICBP2pA3Jbwyh113oMna4XWMcb+DRO8KwhnA4VexqCb6zf6egxpuxZznERsL7VfOjQt67cPhnCbrMR6Bv015s5DLJomp6AwYuZJZCtz4Doh5GDCN/FWOExQBD9UVV/AkvBSw5tnTI+d8/kVMu5d4ozLFHFVq3AQlA1PqBPhfUsWkJnTVyVcGXOtb8XlHwOdhmZoL+r8Oxo5eQ6HK0yp+Yg4FOiZkLI2IobPcaOdFCqOOEbo9afL6aDwdmPM3ZjHfQZMgGNlIQ865XBaZW+2gfbke55GL+sQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yh4eXjuIbGzWHNTTEFohP5olht+51SLodNb3WUBmYUc=; b=E2RqEWZo/SiRJJcJVyxsOfwtqKpKSm0SHrNi++g4eo6xcmNWsBy74tWCGdnhN/1H1t+44JKSf2wv8CVgqt7C0cINkxZQCeDgnoJxurgZ0Ame1Xc8zDQylHgYREdgN+1ZSMQ2hmcVjEs+K72Sz8Noavf9GBVQxD2bkXhlqR1QtAk3g5cJwOzUEFBm1JRHlHokrm6hUjxqzaBzeFKe3tTSXphKUgWaP+6gs1xlGM2Eb/593+5oD3zSoVwhc6/nE2zlfQJS2H43v3pgUlZNPPpeZ2b+NA+N+yUQY0FByDxG8G2Pg9ypmX+p6BNyrpoM6Qde/01rQoBvaevZ5VLCX7UF7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yh4eXjuIbGzWHNTTEFohP5olht+51SLodNb3WUBmYUc=; b=K74XKcxBTz30Hc2xk/PFISdSpGLIcsy6yxTNVvjN2a5V3pJJrA4qsq454ZFMQx07p5B5b9AOJTW6vCaLOn6NNChkRdqP9VlNzNhgEJY9a+Csqq1Kdy7wvTh39oOBjSOYurE/pBXDBoQ7A0QPLhCRMU/V8gbQiDwU5JN2s2Vjpk4= Received: from PH0PR18MB5167.namprd18.prod.outlook.com (2603:10b6:510:168::7) by MW3PR18MB3593.namprd18.prod.outlook.com (2603:10b6:303:57::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.27; Tue, 26 Sep 2023 08:12:11 +0000 Received: from PH0PR18MB5167.namprd18.prod.outlook.com ([fe80::25ea:22cf:7a9a:f1fd]) by PH0PR18MB5167.namprd18.prod.outlook.com ([fe80::25ea:22cf:7a9a:f1fd%7]) with mapi id 15.20.6813.017; Tue, 26 Sep 2023 08:11:52 +0000 From: Amit Prakash Shukla To: Anoob Joseph , Chengwen Feng , Kevin Laatz , Bruce Richardson CC: "dev@dpdk.org" , Jerin Jacob Kollanukkaran , "conor.walsh@intel.com" , Vamsi Krishna Attunuru , "g.singh@nxp.com" , "sachin.saxena@oss.nxp.com" , "hemant.agrawal@nxp.com" , "cheng1.jiang@intel.com" , Nithin Kumar Dabilpuram Subject: RE: [PATCH v1 2/2] test/dma: add source buffer offload free test Thread-Topic: [PATCH v1 2/2] test/dma: add source buffer offload free test Thread-Index: AQHZ4WLl1rAlHOUgMUyBmjoBcNzcCbAiG6+AgArCcpA= Date: Tue, 26 Sep 2023 08:11:52 +0000 Message-ID: References: <20230907081040.1002478-1-amitprakashs@marvell.com> <20230907081040.1002478-3-amitprakashs@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcYW1pdHByYWth?= =?us-ascii?Q?c2hzXGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02?= =?us-ascii?Q?Yjg0YmEyOWUzNWJcbXNnc1xtc2ctNTZiMjljYjMtNWM0NC0xMWVlLWI2ZGQt?= =?us-ascii?Q?MWNjMTBjNDc0ZGNlXGFtZS10ZXN0XDU2YjI5Y2I0LTVjNDQtMTFlZS1iNmRk?= =?us-ascii?Q?LTFjYzEwYzQ3NGRjZWJvZHkudHh0IiBzej0iODE3NCIgdD0iMTMzNDAxOD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QUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFRQUFBQUFBQUFBQ0FB?= =?us-ascii?Q?QUFBQUNlQUFBQWJRQmhBSElBZGdCbEFHd0FiQUJmQUhRQVpRQnlBRzBBYVFC?= =?us-ascii?Q?dUFIVUFjd0FBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFKNEFBQUJ0QUdF?= =?us-ascii?Q?QWNnQjJBR1VBYkFCc0FGOEFkd0J2QUhJQVpBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBRUFBQUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg=3D=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR18MB5167:EE_|MW3PR18MB3593:EE_ x-ms-office365-filtering-correlation-id: 691908b5-9f6e-4201-6383-08dbbe683d84 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DLSuWpUKTP7zBvnOqkrMSHhzdF0YXSoa7qN2UqoHS6Cz6GKaxRZbYd2iaQplyWcEO2E8ytuKRXl+mKUsdvj9EfDe6DZoxg0vJYZ/4nkopoOZGs/OkOAWM2vLh/lRHr7RLkU0YQG3i9QbaK0RSwZeV6FbsR4bdTawbTETU5UYI52D7O5bsEDZXeU7oUo3fzqN1JQ6hBT0i6I0lZceOwF2qXojHP/uVencZKHRSBidws+e/SMFtNGVbOfEkSobkArRugCsWCennkT8GUP8uQCIqkmZRzEz6Piy1dvItYrOY3JcmEZfw2S1mHRHTB02ySS9IZA5b0/rMUMJf0gnBDbhldL6wczPKdqtqAKTOfONlQUGowWJ5jw7tLJt1qj9MCHwtGKMEfne6LqihxgPUrURHRuQfjrYrQ+BdSRb2boW8AqjQpobns90549OLmIvTwTt9KVgkHH3OHPHGQtuv+v1WT+Nk8n/zUKYr7s/I3qrKEapAKb6FXTlOD+zraQObsUtWK9L3Ss8eI/BhfsoRPb/sVMtX72qXnvX7/7Hqjt6OB/QUw4vzXXll9qXpARhi/rMd8cY0bAjKgc4r/bghkuF14QOSp/516ZjOVkDVm/OhuIUejoyvZ49asJ0nHVADkWhKNS4NQmVSN6x+fSRzq5NJg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB5167.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376002)(366004)(136003)(39860400002)(396003)(346002)(230922051799003)(451199024)(1800799009)(186009)(316002)(41300700001)(9686003)(71200400001)(107886003)(33656002)(53546011)(26005)(7696005)(6506007)(478600001)(38100700002)(83380400001)(122000001)(38070700005)(86362001)(66556008)(66446008)(64756008)(66946007)(110136005)(54906003)(66476007)(76116006)(55016003)(2906002)(8676002)(52536014)(8936002)(5660300002)(4326008)(20703003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1JmwHG9jV4TkFnOAlFIMwhxmjNcC+OUQCafqB2V9XgStbLTBs5h7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u3iDKC1zvJ0hbwK3wViN19gqMTw4aZhdzHu?= =?us-ascii?Q?o6sjCn1YDIFigMLGGWxuja4CytRGIJOYp1PaOFviG2dTLc0pL2x6fiSOliU0?= =?us-ascii?Q?V8NrPA7sluJMQaui50gah4jqsjqbBI9KS46qpcxlR0N14023vYwPW4GRCoNK?= =?us-ascii?Q?2WtZblbr7VwoI47k+ZL4nKsKL3r9PrglYXa7od8X+vq66lm2sN/lDDUqalpt?= =?us-ascii?Q?yzpEG4iMgxKfCijC11+9OnPtk+HAn1rcKxt/PQaLt+JzpzXRXrwKSG38yvlB?= =?us-ascii?Q?kFszluyXXXCTDgT65iKAaq9b2uFRiFNnFG6np+Dtr1D6kCGpUvV1H8FQUwiQ?= =?us-ascii?Q?0x+JKWh2+GbrmOml3ll8d/HpDW3rqI/Lz7cV9JmSyKISetFqSTSbvzPsf5zu?= =?us-ascii?Q?fjKTVkhjrAVyVrmZAAQsQpvRP4mDfi1wOti1sebE1NckX4PIv+qNgEbtsbqb?= =?us-ascii?Q?mp1Hz1TazbyTfdVXvWWFFjaWavmA1SMDZvbSBZauroLZBkz7I/+a7O1mubC5?= =?us-ascii?Q?8Pjx63Ug04XaTgFgHr8wCazSCfA01VhFsHmCHfpFPH8RbWk+WSM21C0D1RvO?= =?us-ascii?Q?nqCEZlcLQMHXd8EP//xN2TJZQH4FhADY9D1P/QM6Qe2cJJSNfk4I3hanWhjz?= =?us-ascii?Q?wgHMR2hWlHe7WyqYbPdkAmbHxkXuzQGrIfk5iJc/?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB5167.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 691908b5-9f6e-4201-6383-08dbbe683d84 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2023 08:11:52.0471 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: l4Zk7IY7B2omL8NCwV/fhGGr5J/2cxrIKDy+TMSFNgeZMoySlKWafM1VHs3LWP9sHphZOpRdKi797dgiByfANW97olZZrUfs6D80FBWkvLI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR18MB3593 X-Proofpoint-GUID: HIl8yW0PyxAwi3-DvmAhKj8rhRsgo4y_ X-Proofpoint-ORIG-GUID: HIl8yW0PyxAwi3-DvmAhKj8rhRsgo4y_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-26_06,2023-09-25_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi Anoob, Thanks for the review and feedback. I will make the suggested changes in ne= xt version of the patch. Thanks, Amit Shukla > -----Original Message----- > From: Anoob Joseph > Sent: Tuesday, September 19, 2023 5:19 PM > To: Amit Prakash Shukla ; Chengwen Feng > ; Kevin Laatz ; Bruce > Richardson > Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ; > conor.walsh@intel.com; Vamsi Krishna Attunuru ; > g.singh@nxp.com; sachin.saxena@oss.nxp.com; hemant.agrawal@nxp.com; > cheng1.jiang@intel.com; Nithin Kumar Dabilpuram > ; Amit Prakash Shukla > > Subject: RE: [PATCH v1 2/2] test/dma: add source buffer offload free test >=20 > Hi Amit, >=20 > Please see inline. >=20 > Thanks, > Anoob >=20 > > -----Original Message----- > > From: Amit Prakash Shukla > > Sent: Thursday, September 7, 2023 1:41 PM > > To: Chengwen Feng ; Kevin Laatz > > ; Bruce Richardson > > Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ; > > conor.walsh@intel.com; Vamsi Krishna Attunuru > ; > > g.singh@nxp.com; sachin.saxena@oss.nxp.com; > hemant.agrawal@nxp.com; > > cheng1.jiang@intel.com; Nithin Kumar Dabilpuram > > ; Anoob Joseph ; > Amit > > Prakash Shukla > > Subject: [PATCH v1 2/2] test/dma: add source buffer offload free test > > > > Add a test case to validate the functionality of drivers' dma source > > buffer offload free. As part of dmadev_autotest, test case will be > > executed only if the driver supports source buffer offload free and if > > the test is exported by env variable DPDK_ADD_DMA_TEST. > > > > Signed-off-by: Amit Prakash Shukla > > --- > > app/test/test_dmadev.c | 132 > > ++++++++++++++++++++++++++++++++++++++++- > > 1 file changed, 131 insertions(+), 1 deletion(-) > > > > diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c index > > 6ef875e545..48da4664ae 100644 > > --- a/app/test/test_dmadev.c > > +++ b/app/test/test_dmadev.c > > @@ -18,11 +18,26 @@ > > > > #define ERR_RETURN(...) do { print_err(__func__, __LINE__, > > __VA_ARGS__); return -1; } while (0) > > > > +#define TEST_RINGSIZE 512 > > #define COPY_LEN 1024 > > > > static struct rte_mempool *pool; > > static uint16_t id_count; > > > > +enum { > > + TEST_SRC_BUF_FREE =3D 0, > > + TEST_MAX, > > +}; > > + > > +struct dma_add_test { > > + const char *name; > > + bool enabled; > > +}; > > + > > +struct dma_add_test dma_add_test[] =3D { > > + [TEST_SRC_BUF_FREE] =3D {.name =3D "sbuf_free", .enabled =3D false}, = }; > > + > > static void > > __rte_format_printf(3, 4) > > print_err(const char *func, int lineno, const char *format, ...) @@ > > -797,10 > > +812,93 @@ test_burst_capacity(int16_t dev_id, uint16_t vchan) > > return 0; > > } > > > > +static int > > +test_sbuf_free(int16_t dev_id, uint16_t vchan) { #define NR_MBUF 256 > > + int i, ret =3D 0; > > + int retry =3D 100; > > + uint16_t nb_done =3D 0; > > + bool dma_err =3D false; > > + uint32_t buf_cnt1, buf_cnt2; > > + struct rte_mempool_ops *ops; > > + uint64_t remote_addr =3D 0x40000000ull; >=20 > [Anoob] Can you make remote_addr as a variable read from env variable? > Hard coding may not be the right approach. >=20 > > + struct rte_mbuf *src[NR_MBUF], *dst[NR_MBUF]; > > + const struct rte_dma_vchan_conf qconf =3D { > > + .direction =3D RTE_DMA_DIR_MEM_TO_DEV, > > + .nb_desc =3D TEST_RINGSIZE, > > + .mem_to_dev_src_buf_pool =3D pool, > > + .dst_port.port_type =3D RTE_DMA_PORT_PCIE, > > + /* Assuming pemid as 0. */ > > + .dst_port.pcie.coreid =3D 0, > > + }; > > + static int dev_init; >=20 > [Anoob] Can you use bool instead of int for dev_init? >=20 > > + > > + if (!dev_init) { > > + /* Stop the device to reconfigure vchan. */ > > + if (rte_dma_stop(dev_id) < 0) > > + ERR_RETURN("Error stopping device %u\n", dev_id); > > + > > + if (rte_dma_vchan_setup(dev_id, vchan, &qconf) < 0) > > + ERR_RETURN("Error with queue configuration\n"); > > + > > + if (rte_dma_start(dev_id) !=3D 0) > > + ERR_RETURN("Error with rte_dma_start()\n"); > > + > > + dev_init++; > > + } > > + > > + if (rte_pktmbuf_alloc_bulk(pool, dst, NR_MBUF) !=3D 0) > > + ERR_RETURN("alloc dst mbufs failed.\n"); > > + > > + for (i =3D 0; i < NR_MBUF; i++) { > > + /* Using mbuf structure to hold remote iova address. */ > > + rte_mbuf_iova_set(dst[i], (rte_iova_t)remote_addr); > > + dst[i]->data_off =3D 0; > > + } > > + > > + /* Capture buffer count before allocating source buffer. */ > > + ops =3D rte_mempool_get_ops(pool->ops_index); > > + buf_cnt1 =3D ops->get_count(pool); > > + > > + if (rte_pktmbuf_alloc_bulk(pool, src, NR_MBUF) !=3D 0) > > + ERR_RETURN("alloc src mbufs failed.\n"); >=20 > [Anoob] The memory is not freed in case of errors. May be you can free > them in the end and use goto as required. >=20 > > + > > + if ((buf_cnt1 - NR_MBUF) !=3D ops->get_count(pool)) > > + ERR_RETURN("Buffer count check failed.\n"); > > + > > + for (i =3D 0; i < NR_MBUF; i++) { > > + ret =3D rte_dma_copy(dev_id, vchan, > > rte_mbuf_data_iova(src[i]), > > + rte_mbuf_data_iova(dst[i]), COPY_LEN, > > + RTE_DMA_OP_FLAG_FREE_SBUF); > > + > > + if (ret < 0) > > + ERR_RETURN("rte_dma_copy returned error.\n"); > > + } > > + > > + rte_dma_submit(dev_id, vchan); > > + nb_done =3D 0; > > + do { > > + nb_done +=3D rte_dma_completed(dev_id, vchan, (NR_MBUF > > - nb_done), NULL, &dma_err); > > + if (dma_err) > > + break; > > + /* Sleep for 1 millisecond */ > > + rte_delay_us_sleep(1000); > > + } while (retry-- && (nb_done < NR_MBUF)); > > + > > + buf_cnt2 =3D ops->get_count(pool); > > + if ((buf_cnt1 !=3D buf_cnt2) || dma_err) > > + ERR_RETURN("Free source buffer test failed.\n"); > > + > > + /* If the test passes source buffer will be freed in hardware. */ > > + rte_pktmbuf_free_bulk(dst, NR_MBUF); > > + > > + return 0; > > +} > > + > > static int > > test_dmadev_instance(int16_t dev_id) > > { > > -#define TEST_RINGSIZE 512 > > #define CHECK_ERRS true > > struct rte_dma_stats stats; > > struct rte_dma_info info; > > @@ -890,6 +988,12 @@ test_dmadev_instance(int16_t dev_id) > > else if (runtest("fill", test_enqueue_fill, 1, dev_id, vchan, > > CHECK_ERRS) < 0) > > goto err; > > > > + if ((info.dev_capa & > > RTE_DMA_CAPA_MEM_TO_DEV_SOURCE_BUFFER_FREE) && > > + dma_add_test[TEST_SRC_BUF_FREE].enabled =3D=3D true) { > > + if (runtest("sbuf_free", test_sbuf_free, 128, dev_id, vchan, > > CHECK_ERRS) < 0) > > + goto err; > > + } > > + > > rte_mempool_free(pool); > > > > if (rte_dma_stop(dev_id) < 0) > > @@ -922,11 +1026,37 @@ test_apis(void) > > return ret; > > } > > > > +static void > > +parse_dma_env_var(void) > > +{ > > + char *dma_env_str =3D getenv("DPDK_ADD_DMA_TEST"); > > + char *tests[32] =3D {0}; > > + int n_tests =3D 0; > > + int i, j; > > + > > + if (dma_env_str && strlen(dma_env_str) > 0) { > > + char *additional_test =3D strdup(dma_env_str); > > + if (additional_test) { > > + n_tests =3D rte_strsplit(additional_test, > > strlen(additional_test), tests, > > + RTE_DIM(tests), ','); > > + for (i =3D 0; i < n_tests; i++) { > > + for (j =3D 0; j < TEST_MAX; j++) { > > + if (!strcmp(tests[i], > > dma_add_test[j].name)) > > + dma_add_test[j].enabled =3D > > true; > > + } > > + } > > + } > > + free(additional_test); > > + } > > +} > > + > > static int > > test_dma(void) > > { > > int i; > > > > + parse_dma_env_var(); > > + > > /* basic sanity on dmadev infrastructure */ > > if (test_apis() < 0) > > ERR_RETURN("Error performing API tests\n"); > > -- > > 2.25.1