From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v3 8/9] mem: allow querying offset into segment fd Date: Fri, 14 Sep 2018 09:57:27 +0200 Message-ID: <6c7c1862-0288-56a7-2063-ead1cc64c831@redhat.com> References: <155676c123bd8b8770dcd966c7aa347177a70660.1536073997.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Bruce Richardson , tiwei.bie@intel.com, ray.kinsella@intel.com, zhihong.wang@intel.com, kuralamudhan.ramakrishnan@intel.com To: Anatoly Burakov , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 74E375B30 for ; Fri, 14 Sep 2018 09:57:32 +0200 (CEST) In-Reply-To: <155676c123bd8b8770dcd966c7aa347177a70660.1536073997.git.anatoly.burakov@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 09/04/2018 05:15 PM, Anatoly Burakov wrote: > In a few cases, user may need to query offset into fd for a > particular memory segment (for example, to selectively map > pages). This commit adds a new API to do that. > > Signed-off-by: Anatoly Burakov > --- > > Notes: > v3: > - Fix single file segments mode not working > > lib/librte_eal/bsdapp/eal/eal_memalloc.c | 6 +++ > lib/librte_eal/common/eal_common_memory.c | 50 ++++++++++++++++++++++ > lib/librte_eal/common/eal_memalloc.h | 3 ++ > lib/librte_eal/common/include/rte_memory.h | 49 +++++++++++++++++++++ > lib/librte_eal/linuxapp/eal/eal_memalloc.c | 24 +++++++++++ > lib/librte_eal/rte_eal_version.map | 2 + > 6 files changed, 134 insertions(+) > Reviewed-by: Maxime Coquelin Thanks, Maxime