From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id F3DC01B96E for ; Fri, 11 Jan 2019 09:05:29 +0100 (CET) Received: from rsa59-2-82-233-193-189.fbx.proxad.net ([82.233.193.189] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghrqY-0004oz-Rf; Fri, 11 Jan 2019 09:07:20 +0100 Received: by droids-corp.org (sSMTP sendmail emulation); Fri, 11 Jan 2019 09:05:26 +0100 Date: Fri, 11 Jan 2019 09:05:26 +0100 From: Olivier Matz To: Yongseok Koh Cc: shahafs@mellanox.com, dev@dpdk.org, roszenrami@gmail.com, david.marchand@redhat.com Message-ID: <20190111080526.s6vouk7hfmkdq7yk@platinum> References: <20190109085426.39965-1-yskoh@mellanox.com> <20190110224030.2671-1-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190110224030.2671-1-yskoh@mellanox.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH v4 1/2] mbuf: add function returning default buffer address X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jan 2019 08:05:30 -0000 On Thu, Jan 10, 2019 at 02:40:29PM -0800, Yongseok Koh wrote: > This patch introduces two new functions - rte_mbuf_buf_addr() and > rte_mbuf_data_addr_default(). > > rte_mbuf_buf_addr() reutrns the default buffer address of given mbuf which > comes after mbuf structure and private data. > > rte_mbuf_data_addr_default() returns the default address of mbuf data > taking the headroom into account. > > Signed-off-by: Yongseok Koh Acked-by: Olivier Matz