Re: [dpdk-dev] [PATCH v2 4/4] net/mlx4: add new Memory Region support

2018-05-15 Thread Nélio Laranjeiro
On Thu, May 10, 2018 at 08:29:03PM +0100, Ferruh Yigit wrote: > On 5/10/2018 7:01 AM, Yongseok Koh wrote: > > > >> On May 9, 2018, at 8:00 PM, Yongseok Koh wrote: > >> > >> > >>> On May 9, 2018, at 4:12 PM, Ferruh Yigit wrote: > >>> > >>> On 5/9/2018 12:09 PM, Yongseok Koh wrote: > >>> <...> > >

Re: [dpdk-dev] [PATCH v2 4/4] net/mlx4: add new Memory Region support

2018-05-10 Thread Ferruh Yigit
On 5/10/2018 7:01 AM, Yongseok Koh wrote: > >> On May 9, 2018, at 8:00 PM, Yongseok Koh wrote: >> >> >>> On May 9, 2018, at 4:12 PM, Ferruh Yigit wrote: >>> >>> On 5/9/2018 12:09 PM, Yongseok Koh wrote: >>> <...> >>> +/** + * Insert an entry to B-tree lookup table. + * + * @p

Re: [dpdk-dev] [PATCH v2 4/4] net/mlx4: add new Memory Region support

2018-05-09 Thread Yongseok Koh
> On May 9, 2018, at 8:00 PM, Yongseok Koh wrote: > > >> On May 9, 2018, at 4:12 PM, Ferruh Yigit wrote: >> >> On 5/9/2018 12:09 PM, Yongseok Koh wrote: >> <...> >> >>> +/** >>> + * Insert an entry to B-tree lookup table. >>> + * >>> + * @param bt >>> + * Pointer to B-tree structure. >>> +

Re: [dpdk-dev] [PATCH v2 4/4] net/mlx4: add new Memory Region support

2018-05-09 Thread Yongseok Koh
> On May 9, 2018, at 4:12 PM, Ferruh Yigit wrote: > > On 5/9/2018 12:09 PM, Yongseok Koh wrote: >> This is the new design of Memory Region (MR) for mlx PMD, in order to: >> - Accommodate the new memory hotplug model. >> - Support non-contiguous Mempool. >> >> There are multiple layers for MR se

Re: [dpdk-dev] [PATCH v2 4/4] net/mlx4: add new Memory Region support

2018-05-09 Thread Ferruh Yigit
On 5/9/2018 12:09 PM, Yongseok Koh wrote: > This is the new design of Memory Region (MR) for mlx PMD, in order to: > - Accommodate the new memory hotplug model. > - Support non-contiguous Mempool. > > There are multiple layers for MR search. > > L0 is to look up the last-hit entry which is pointe

[dpdk-dev] [PATCH v2 4/4] net/mlx4: add new Memory Region support

2018-05-09 Thread Yongseok Koh
This is the new design of Memory Region (MR) for mlx PMD, in order to: - Accommodate the new memory hotplug model. - Support non-contiguous Mempool. There are multiple layers for MR search. L0 is to look up the last-hit entry which is pointed by mr_ctrl->mru (Most Recently Used). If L0 misses, L1