[dpdk-dev] [PATCH] mem: get physical address of any pointer

2013-06-12 Thread Thomas Monjalon
12/06/2013 17:35, Olivier MATZ : > On 06/12/2013 05:24 PM, Thomas Monjalon wrote: > > From: Damien Millescamps > > > > Extract rte_mem_virt2phy() from find_physaddr(). > > Acked-by: Olivier Matz pushed -- Thomas

[dpdk-dev] [PATCH] mem: get physical address of any pointer

2013-06-12 Thread Olivier MATZ
On 06/12/2013 05:24 PM, Thomas Monjalon wrote: > From: Damien Millescamps > > Extract rte_mem_virt2phy() from find_physaddr(). Acked-by: Olivier Matz

[dpdk-dev] [PATCH] mem: get physical address of any pointer

2013-06-12 Thread Thomas Monjalon
From: Damien Millescamps Extract rte_mem_virt2phy() from find_physaddr(). rte_mem_virt2phy() permits to obtain the physical address of any virtual address mapped to the current process calling this function. Note that this function is very slow and shouldn't be called after initialization to avo

[dpdk-dev] [PATCH] mem: get physical address of any pointer

2013-06-12 Thread Olivier MATZ
Hi Thomas, Please find some comments below. > +/** > + * Get physical address of any mapped virtual address in the current process. > + * It is found by browsing the /proc/self/pagemap special file. > + * The page won't be swappable anymore. > + */ > +phys_addr_t rte_mem_virt2phy(const voi

[dpdk-dev] [PATCH] mem: get physical address of any pointer

2013-06-12 Thread Thomas Monjalon
From: Damien Millescamps Extract rte_mem_virt2phy() from find_physaddr(). This function permits to obtain the physical address of any virtual address mapped to the current process calling this function. Note that this function is very slow and shouldn't be called after initialization to avoid a