Re: [dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys

2021-04-06 Thread Feng Li
On Thu, Apr 1, 2021 at 6:39 PM Burakov, Anatoly wrote: > > On 25-Mar-21 1:32 PM, David Marchand wrote: > > Hello, > > > > On Mon, Apr 20, 2020 at 4:13 PM Li Feng wrote: > >> > >> Cool, thank you, Anatoly and Kozlyuk. > >> > >> I haven't found how Windows implements the rte_mem_virt2phy. > >> > >>

Re: [dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys

2021-04-06 Thread David Marchand
On Tue, Apr 6, 2021 at 12:40 PM Feng Li wrote: > > On Thu, Apr 1, 2021 at 6:39 PM Burakov, Anatoly > wrote: > > > > On 25-Mar-21 1:32 PM, David Marchand wrote: > > > Hello, > > > > > > On Mon, Apr 20, 2020 at 4:13 PM Li Feng wrote: > > >> > > >> Cool, thank you, Anatoly and Kozlyuk. > > >> > > >

Re: [dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys

2021-04-01 Thread Burakov, Anatoly
On 25-Mar-21 1:32 PM, David Marchand wrote: Hello, On Mon, Apr 20, 2020 at 4:13 PM Li Feng wrote: Cool, thank you, Anatoly and Kozlyuk. I haven't found how Windows implements the rte_mem_virt2phy. Using an opaque structure pointer as the first argument is a good idea. I pinged about this

[dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys

2021-03-28 Thread Li Feng
Hi david, Sorry for late response. I just see your mail on my trip. I will update this patch, if anyone has interest in this feature. Currently it's in my own repo. 在 2021年3月25日星期四,David Marchand 写道: > Hello, > > On Mon, Apr 20, 2020 at 4:13 PM Li Feng wrote: > > > > Cool, thank you, Anatoly

Re: [dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys

2021-03-25 Thread David Marchand
Hello, On Mon, Apr 20, 2020 at 4:13 PM Li Feng wrote: > > Cool, thank you, Anatoly and Kozlyuk. > > I haven't found how Windows implements the rte_mem_virt2phy. > > Using an opaque structure pointer as the first argument is a good idea. I pinged about this patch status 6 months ago but got no re

Re: [dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys

2020-04-20 Thread Li Feng
Cool, thank you, Anatoly and Kozlyuk. I haven't found how Windows implements the rte_mem_virt2phy. Using an opaque structure pointer as the first argument is a good idea. Thanks, Feng Li Dmitry Kozlyuk 于2020年4月20日周一 下午9:07写道: > > > On 20-Apr-20 12:09 PM, Li Feng wrote: > > > Using pread to re

Re: [dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys

2020-04-20 Thread Dmitry Kozlyuk
> On 20-Apr-20 12:09 PM, Li Feng wrote: > > Using pread to replace lseek + read. > > And add new APIs to reduce open/close/lseek system call frequency when the > > user needs to convert a large range of virtual address space. > > - rte_mem_virt2iova_with_fd > > - rte_mem_virt2phy_with_fd

Re: [dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys

2020-04-20 Thread Burakov, Anatoly
On 20-Apr-20 12:09 PM, Li Feng wrote: Using pread to replace lseek + read. And add new APIs to reduce open/close/lseek system call frequency when the user needs to convert a large range of virtual address space. - rte_mem_virt2iova_with_fd - rte_mem_virt2phy_with_fd Currently it will b

[dpdk-dev] [PATCH] librte_eal: add APIs to speedup virt2iova/phys

2020-04-20 Thread Li Feng
Using pread to replace lseek + read. And add new APIs to reduce open/close/lseek system call frequency when the user needs to convert a large range of virtual address space. - rte_mem_virt2iova_with_fd - rte_mem_virt2phy_with_fd Currently it will be used by spdk in spdk_mem_register. Sign