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 BAE03A0543; Fri, 7 Oct 2022 22:17:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD523400D5; Fri, 7 Oct 2022 22:17:25 +0200 (CEST) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mails.dpdk.org (Postfix) with ESMTP id 0B3C440042 for ; Fri, 7 Oct 2022 22:17:24 +0200 (CEST) Received: by mail-wm1-f49.google.com with SMTP id p26-20020a7bcc9a000000b003c384e59047so1212307wma.4 for ; Fri, 07 Oct 2022 13:17:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eOPEHaoRIWI6dklDHAq9XJi7WgWTmkzpO+lJUet1ens=; b=aFtzO1UInKcD6uFotTGYFBG9/ph0RsQ/Gbn3lLYX9HXnZu1z94Ohm527BJdgSpFo/X DsZo9hQlflOAjXDj9q4FmyOS8DPrDPGIrZqbFhU0Yd64p3nUUWNBkTiIT0xuydL+/1ez KhjAkk+1/3w2ErHz5IBEmpGgubop7it8UYnOgTVDcRQnT2nwTXcHSUvUjYDNhIIRkhYN 5sjnVQGfczuaEZHFsyRS3MrYURhRPhBqtgm1eEhUIM5hR36CUrWoDl1w9wnYiGfqhW1S +vktLktri+OzT8ECjKVBdpMuJuD/KaEefh+6UygahCE4YSCirrcIp2Ai0wDjrkK0foyt h0Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eOPEHaoRIWI6dklDHAq9XJi7WgWTmkzpO+lJUet1ens=; b=RQMvQBgzl7MaK0dkX+TqcWNZi8BJIhcdAkB/sVdPpKTRVjCcp/fCEmX/jAg2w/BbOW ul8RGPdOOaJpHQH3PzT0fjAsMPJPU9dmSG1Ml3hWbheELvupWzMvEnGsSS4I90RhXId6 hLNvEbTIEHyvxO71fz+UnEn/h4IFBKxw/XMnxl+1JpuNyItcy6gV3daaokPP1qzf+iwj QXoFws2vWiS64JGuN+of0c3jdj486haT1jxB7JqZ2sp7fklAkJdMqrZ2ChN85QAePQfy ZIrdwp01bSGBcnqj9/+OdwpUJLVs/XCuAfvtg1FCfxUnPwRwECqzT0Aby8q3C+mIyWeL c3aw== X-Gm-Message-State: ACrzQf0y5Q6ojhEKMyKomCnIrHrS5EHrQECVY7wpbOvI/FbB4AsuG0e4 UfPswttVRyJxeOOtSk2H36Fk+w== X-Google-Smtp-Source: AMsMyM7snuVqolgtFn9kaqaH3pjzBUZHcpP5YR21opwl5lFyzndNIlio4sOr9WBIS6nhsOGK7mGjyQ== X-Received: by 2002:a05:600c:27d1:b0:3b4:5e9c:23ed with SMTP id l17-20020a05600c27d100b003b45e9c23edmr4275038wmb.180.1665173843706; Fri, 07 Oct 2022 13:17:23 -0700 (PDT) Received: from 6wind.com ([2a01:e0a:5ac:6460:7be5:dd98:fb1:278]) by smtp.gmail.com with ESMTPSA id n41-20020a05600c502900b003b483000583sm3040307wmr.48.2022.10.07.13.17.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 13:17:23 -0700 (PDT) Date: Fri, 7 Oct 2022 22:17:22 +0200 From: Olivier Matz To: Shijith Thotton Cc: dev@dpdk.org, Honnappa.Nagarahalli@arm.com, bruce.richardson@intel.com, jerinj@marvell.com, mb@smartsharesystems.com, stephen@networkplumber.org, thomas@monjalon.net, ferruh.yigit@amd.com, pbhagavatula@marvell.com, Chengwen Feng , Kevin Laatz Subject: Re: [PATCH v4 2/7] test/dma: use API to get mbuf data physical address Message-ID: References: <79cf69f1f413923dc4ea28bbb378b340f19778c2.1665170500.git.sthotton@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79cf69f1f413923dc4ea28bbb378b340f19778c2.1665170500.git.sthotton@marvell.com> 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 Sat, Oct 08, 2022 at 01:00:24AM +0530, Shijith Thotton wrote: > Used rte_mbuf_data_iova API to get the physical address of mbuf data. > > Signed-off-by: Shijith Thotton > --- > app/test/test_dmadev.c | 33 ++++++++++++++------------------- > 1 file changed, 14 insertions(+), 19 deletions(-) > > diff --git a/app/test/test_dmadev.c b/app/test/test_dmadev.c > index 9e8e101f40..fe62e98af8 100644 > --- a/app/test/test_dmadev.c > +++ b/app/test/test_dmadev.c > @@ -110,8 +110,8 @@ do_multi_copies(int16_t dev_id, uint16_t vchan, > for (j = 0; j < COPY_LEN/sizeof(uint64_t); j++) > src_data[j] = rte_rand(); > > - if (rte_dma_copy(dev_id, vchan, srcs[i]->buf_iova + srcs[i]->data_off, > - dsts[i]->buf_iova + dsts[i]->data_off, COPY_LEN, 0) != id_count++) > + if (rte_dma_copy(dev_id, vchan, rte_mbuf_data_iova(srcs[i]), > + rte_mbuf_data_iova(dsts[i]), COPY_LEN, 0) != id_count++) This is not related to your patch, but for the record: I realize that there are 2 APIs for the same thing: rte_pktmbf_iova() and rte_mbuf_data_iova().