From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v4 3/6] bus: introduce device level DMA memory mapping Date: Wed, 13 Mar 2019 11:47:29 +0000 Message-ID: References: <1698312.TEgN2QzQvo@xps> <1907286.xmCKSEcAjO@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" , Yongseok Koh , "ferruh.yigit@intel.com" , "nhorman@tuxdriver.com" , "gaetan.rivet@6wind.com" To: Thomas Monjalon , Shahaf Shuler Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 0B4EF4C8E for ; Wed, 13 Mar 2019 12:47:31 +0100 (CET) In-Reply-To: <1907286.xmCKSEcAjO@xps> 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 13-Mar-19 11:19 AM, Thomas Monjalon wrote: > 13/03/2019 12:12, Shahaf Shuler: >> From: Thomas Monjalon >>>> +/** >>>> + * Device level DMA map function. >>>> + * After a successful call, the memory segment will be mapped to the >>>> + * given device. >>>> + * >>>> + * @note: Memory must be registered in advance using rte_extmem_* >>> APIs. >>> >>> Could we make more explicit that this function is part of the "external >>> memory API"? >> >> How do you suggest? > > There could be an explicit comment. > >> This function belongs to rte_dev therefore the rte_dev prefix. better rte_dev_extmem_dma_map ? > > Not sure about the prefix. Anatoly? > IMO this is a dev API. The fact that its purpose is to use it with extmem is coincidental. -- Thanks, Anatoly