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 558F9A00C2; Tue, 1 Nov 2022 10:46:54 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F401240223; Tue, 1 Nov 2022 10:46:53 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 3E98940156 for ; Tue, 1 Nov 2022 10:46:52 +0100 (CET) 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 2A19H62N002495; Tue, 1 Nov 2022 02:46:51 -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 : content-transfer-encoding; s=pfpt0220; bh=Ph88Awh7KMGtxDie+gP2WAdN9D9g5bogHULlt2KKgdU=; b=GRzSzdg3uSAQmH7BIow0Txlkvgx70LKyqqa03dzc8wDa31+PR1DiAS2fsh85rlr39v0J UT0MKwwGjQ3qIhzFwyt9XjmVRsgqyCiwG9faVOwliPwdPQ2BUYXbGbDbH5wW9eEMnpou FBUTQNNvJUeHhlhG3pjpQKpu9suzpwSgkj+2MuyklYHvSysiLEqErn/qNOA4Ts7TCbq7 BRZSGwj6DVY5dOc2H1dShA4N+aIJdk8qpEEShK/lI//qSK4tFnr8IzeAFmaL26KQKPBJ n7Qc/rlhK+/PMJLaYSIv3olO3fs8nOP2VEUnWz9K7rB8tnA1aIR1vpPtm91pvSK6iNjn 4g== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3kk0pfr2dm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 01 Nov 2022 02:46:51 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Tue, 1 Nov 2022 02:46:49 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 1 Nov 2022 02:46:49 -0700 Received: from ml-host-33.caveonetworks.com (unknown [10.110.143.233]) by maili.marvell.com (Postfix) with ESMTP id 1DA433F70F4; Tue, 1 Nov 2022 02:46:49 -0700 (PDT) From: Srikanth Yalavarthi To: Nicolas Chautru , Maxime Coquelin CC: , Srikanth Yalavarthi Subject: [PATCH v2 1/1] test/bbdev: use helper function to set IOVA addr Date: Tue, 1 Nov 2022 02:46:20 -0700 Message-ID: <20221101094620.24730-1-syalavarthi@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221101074807.30388-1-syalavarthi@marvell.com> References: <20221101074807.30388-1-syalavarthi@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: Q2p8sYsDuTyXNgb9VD3kcyhPaljP8DCj X-Proofpoint-ORIG-GUID: Q2p8sYsDuTyXNgb9VD3kcyhPaljP8DCj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-01_05,2022-10-31_01,2022-06-22_01 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 Use helper function rte_mbuf_iova_set to set IOVA address to fix compilation failures. Below error was observed: dpdk/app/test-bbdev/test_bbdev_perf.c: In function ‘init_op_data_objs’: dpdk/app/test-bbdev/test_bbdev_perf.c:1145:11: error: ‘struct rte_mbuf’ has no member named ‘buf_iova’ 1145 | m_head->buf_iova = rte_malloc_virt2iova(data); | ^~ Fixes: 0acdb98667 ("test/bbdev: add FFT operations cases") Signed-off-by: Srikanth Yalavarthi Change-Id: I9d4cda5f7fcd3a05b3cc8af7eaeccdf977b7fecd --- app/test-bbdev/test_bbdev_perf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 8cf4359a2c..b285d3f3a7 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -1142,7 +1142,7 @@ init_op_data_objs(struct rte_bbdev_op_data *bufs, "rte malloc failed with %u bytes", seg->length + 1024); m_head->buf_addr = data; - m_head->buf_iova = rte_malloc_virt2iova(data); + rte_mbuf_iova_set(m_head, rte_malloc_virt2iova(data)); m_head->data_off = 0; m_head->data_len = seg->length; } else { -- 2.17.1