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 1E704A0543; Fri, 7 Oct 2022 23:20:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF1C1400D5; Fri, 7 Oct 2022 23:20:47 +0200 (CEST) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mails.dpdk.org (Postfix) with ESMTP id C660840042 for ; Fri, 7 Oct 2022 23:20:46 +0200 (CEST) Received: by mail-pg1-f173.google.com with SMTP id f193so5750403pgc.0 for ; Fri, 07 Oct 2022 14:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=X5Q6L4w00WiHRnKp1GtNFf3/Zyvblc4BcdNjyS4/2Ko=; b=ttIgonv4hip2ygeaNRt1teHdOU4TEans/LgSx/2jq00dedyLrw1g3Az2yWmEr3i73e Dm7ZDp/Bp9WJ9Ojr3R8RDSFn4Uhc6X2XKVpOukIRQW3Q5NrIwECwWausc2WfM3nDAy0W nYv6NhmoPLL61UnvdBWhZ6lzcldsZrJ28tAYaAkTdCaOy9OkHS33BP/XzjebPHzvIzhD g02jlAC7OfoyMy3ZfAxBq53J+fVfak8PezcIG+I3XJSdXp9FyaSGc/pc/OOhAlUEixST IzVIj+4bIkiyv8AsMkBr+GmpIBK+LrtssJ7LzF1QdBiQ8Rz2Wgt9JSCq3+t5JnuPI5pu KW/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X5Q6L4w00WiHRnKp1GtNFf3/Zyvblc4BcdNjyS4/2Ko=; b=Zra4y/bUvUTXafoQFR3bOx4bXz027AD+slTxnGnC/EmLkkYRFKYsirqHRQUjzQBnXu AbUqX73LNbixDKzCwM0GXCUfSAH4FqcRqa/8GSMjSLSQbRx5qjx3TTtjw7a6KkvMEXku aM7z+8iWD4+B9kbIOCodoZLRO0RCy4ySgP6AL5ecOu7e3wIRWWpgkHwQbhiGOtJO69nX BaP38sCjB6gnP5JJZdXiX8qc+XWAi8CdavQfH1zuSZQeBHQI1vocVfbYkyiXugDD0eMC NZeyz0wABPZIFOS6Sl9p79CTtsoZJZYzA+lQM5iR3KLaaAF8qmN6DljkLO1J69YGm3aX /nNw== X-Gm-Message-State: ACrzQf1r8s4uu0mHJxoRcjyVGmEr43XAY3MqRf/TQOuidnhWspqdYY8L DAHOzKSuHrhtsU6Ca3cDHdGLKg== X-Google-Smtp-Source: AMsMyM4rdHzpArhWl5ydKu5um9tchhSAmYo6hR74ZGAMOQhF5gaItXzh8bRqbsjqyBZv6p2CPxkVAA== X-Received: by 2002:a65:48cc:0:b0:45f:795:c374 with SMTP id o12-20020a6548cc000000b0045f0795c374mr3198678pgs.107.1665177645996; Fri, 07 Oct 2022 14:20:45 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id 4-20020a621404000000b005618e84993csm2083704pfu.83.2022.10.07.14.20.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 14:20:45 -0700 (PDT) Date: Fri, 7 Oct 2022 14:20:44 -0700 From: Stephen Hemminger To: Shijith Thotton Cc: , , , , , , , Nicolas Chautru , Ciara Power , "Konstantin Ananyev" , Reshma Pattan , Cristian Dumitrescu , Maxime Coquelin , Chenbo Xia Subject: Re: [PATCH v5 1/7] mbuf: add API to get and set mbuf physical address Message-ID: <20221007142044.5c0cf38e@hermes.local> In-Reply-To: <859249ecb375950eba98901777fae3c70c9388c7.1665176094.git.sthotton@marvell.com> References: <859249ecb375950eba98901777fae3c70c9388c7.1665176094.git.sthotton@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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, 8 Oct 2022 02:32:05 +0530 Shijith Thotton wrote: > > +/** > + * Get the IOVA address of the mbuf data buffer. > + * > + * @param m > + * The pointer to the mbuf. > + * @return > + * The IOVA address of the mbuf. > + */ > +static inline rte_iova_t > +rte_mbuf_iova_get(const struct rte_mbuf *m) > +{ > + return m->buf_iova; > +} > + > +/** > + * Set the IOVA address of the mbuf data buffer > + * > + * @param m > + * The pointer to the mbuf. > + * @param iova > + * Value to set as IOVA address of the mbuf. > + */ > +static inline void > +rte_mbuf_iova_set(struct rte_mbuf *m, rte_iova_t iova) > +{ > + m->buf_iova = iova; > +} If this was macro, it could be used on either side of expression.