From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C46125D5EA; Fri, 14 Sep 2018 07:57:31 +0000 (UTC) Received: from [10.36.112.48] (ovpn-112-48.ams2.redhat.com [10.36.112.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 62458104C52A; Fri, 14 Sep 2018 07:57:29 +0000 (UTC) To: Anatoly Burakov , dev@dpdk.org Cc: Bruce Richardson , tiwei.bie@intel.com, ray.kinsella@intel.com, zhihong.wang@intel.com, kuralamudhan.ramakrishnan@intel.com References: <155676c123bd8b8770dcd966c7aa347177a70660.1536073997.git.anatoly.burakov@intel.com> From: Maxime Coquelin Message-ID: <6c7c1862-0288-56a7-2063-ead1cc64c831@redhat.com> Date: Fri, 14 Sep 2018 09:57:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <155676c123bd8b8770dcd966c7aa347177a70660.1536073997.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 14 Sep 2018 07:57:31 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH v3 8/9] mem: allow querying offset into segment fd 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, 14 Sep 2018 07:57:32 -0000 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