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 319F2A00C2; Thu, 3 Nov 2022 07:32:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5E8440694; Thu, 3 Nov 2022 07:32:21 +0100 (CET) Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) by mails.dpdk.org (Postfix) with ESMTP id DC1B340693 for ; Thu, 3 Nov 2022 07:32:19 +0100 (CET) Received: by mail-qk1-f174.google.com with SMTP id g10so567195qkl.6 for ; Wed, 02 Nov 2022 23:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4qnqNv3hKHVy4IbS1T5IxPYoQzwgrm1OIrm4yeXF0G0=; b=X/mTI/ErnPG67x1GIIqBLa+7+3hTwntyr8Au/RKEXORTfi4KsO8OMkvrnpX/fbeZhS A6k3jTunCGPmYkiv2mF4SHkkV1NKpP/PJ2IN6V9MT8G8kfWeuAkxH1KJpVEULWVqUIv5 6pOIL+2MztnRsRs4GKa8puMRZJcL1kM3f6NDxR0cff9W0clrkn/CwMI6MVt35Nc7hbu0 lvpjnp8pSYLS9HJajaHUeiS7L06a4ohwjTM/3qtGpZH6XqjpfZEFUPuKKBlxr97BCq0K LI8pq4fo2cROgIr2Gu18CE0qTi/Nb4V3XB7v5mjWfQidnS1r3l1F7U2wtDFSBRQIsqVg IkaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4qnqNv3hKHVy4IbS1T5IxPYoQzwgrm1OIrm4yeXF0G0=; b=tyQgFl96H367ym5bJZN+cyylxCKEyWfJWSQZxfzDJSqIp0hvw0+5zjHp0Zj9e2T1BO 5ZMzR08ewKflPujpyoIIS8YdT+kGFIOaGy+KxovXmXt9CRhOFq462JxUoYRnKRsLzGHQ pMrAr3ZVO7yrLU8NiMi6v1HHAFu7rrMaT43oZ5HbQ9NRd53GgZnzRDMNsxAAGFNvxr8o Pszb8fi0kgvHO+zMKO7TqFS6JsQcOQHyenwvuAIvP9CjvAnCGVdP762mTlu0Gt7OXGyG hy3tki3zgOjqHehShznKwCC5M7IzQ2pmTIR6PDhEvMb9gbmPePcuzYZLKwKZFwfkJbct gFzw== X-Gm-Message-State: ACrzQf3Kg+q3m5Bc+0s4wan0EJ3Bk3+9KweFdc0LH1G+kdjD4dpm0GGg IX0ne5Yl+RLRl/kcbH4LVjH+xMgM3j56CduUFWo= X-Google-Smtp-Source: AMsMyM4kdMHwRGT2wEK0gRQ3YBNe0RucxeHIpqXCfAsflzwGz3DiHVQKGah5kizvgn64Z3Wd3R0X/2Cg/Oejr83VO6o= X-Received: by 2002:a05:620a:152e:b0:6fa:3cb8:dd9c with SMTP id n14-20020a05620a152e00b006fa3cb8dd9cmr12496291qkk.82.1667457139239; Wed, 02 Nov 2022 23:32:19 -0700 (PDT) MIME-Version: 1.0 References: <20221101095325.23348-1-syalavarthi@marvell.com> In-Reply-To: <20221101095325.23348-1-syalavarthi@marvell.com> From: Jerin Jacob Date: Thu, 3 Nov 2022 12:01:53 +0530 Message-ID: Subject: Re: [PATCH 1/1] test/bbdev: use helper function to set IOVA addr To: Srikanth Yalavarthi Cc: Nicolas Chautru , Maxime Coquelin , dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Tue, Nov 1, 2022 at 3:23 PM Srikanth Yalavarthi wrote: > > 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 =E2=80=98init_op_data_= objs=E2=80=99: > dpdk/app/test-bbdev/test_bbdev_perf.c:1145:11: error: > =E2=80=98struct rte_mbuf=E2=80=99 has no member named =E2=80=98buf_iova= =E2=80=99 > 1145 | m_head->buf_iova =3D rte_malloc_virt2iova(data); > | ^~ > > Fixes: 0acdb98667 ("test/bbdev: add FFT operations cases") Is this change came after rte_mbuf_iova_set() API introduction? > > Signed-off-by: Srikanth Yalavarthi Acked-by: Jerin Jacob > --- > 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 =3D data; > - m_head->buf_iova =3D rte_malloc_virt2iova= (data); > + rte_mbuf_iova_set(m_head, rte_malloc_virt= 2iova(data)); > m_head->data_off =3D 0; > m_head->data_len =3D seg->length; > } else { > -- > 2.17.1 >