Re: [dpdk-dev] [RFC PATCH v2] kni: properly translate pa2va for cloned mbuf

2020-02-04 Thread Ferruh Yigit
On 2/4/2020 4:49 PM, yoursunny wrote: > Hi Ferruh > > Thanks for your review. > > On Tue, Feb 4, 2020 at 11:17 AM Ferruh Yigit wrote: >> >> On 1/28/2020 4:16 PM, Junxiao Shi wrote: >>> Previously, KNI kernel module uses the difference between m->buf_addr >>> and m->buf_iova to calculate userspac

Re: [dpdk-dev] [RFC PATCH v2] kni: properly translate pa2va for cloned mbuf

2020-02-04 Thread yoursunny
Hi Ferruh Thanks for your review. On Tue, Feb 4, 2020 at 11:17 AM Ferruh Yigit wrote: > > On 1/28/2020 4:16 PM, Junxiao Shi wrote: > > Previously, KNI kernel module uses the difference between m->buf_addr > > and m->buf_iova to calculate userspace virtual address from physical > > address. This

Re: [dpdk-dev] [RFC PATCH v2] kni: properly translate pa2va for cloned mbuf

2020-02-04 Thread Ferruh Yigit
On 1/28/2020 4:16 PM, Junxiao Shi wrote: > Previously, KNI kernel module uses the difference between m->buf_addr > and m->buf_iova to calculate userspace virtual address from physical > address. This works for direct mbufs, but does not work for indirect > (cloned) mbufs that come from another memp