Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system

2021-03-16 Thread Shay Agroskin
Eric Dumazet writes: On 3/9/21 6:10 PM, Shay Agroskin wrote: The page cache holds pages we allocated in the past during napi cycle, and tracks their availability status using page ref count. The cache can hold up to 2048 pages. Upon allocating a page, we check whether the next entry in th

Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system

2021-03-16 Thread Shay Agroskin
Saeed Mahameed writes: On Wed, 2021-03-10 at 03:04 +0100, Andrew Lunn wrote: On Tue, Mar 09, 2021 at 06:57:06PM +0100, Eric Dumazet wrote: > > > On 3/9/21 6:10 PM, Shay Agroskin wrote: > > The page cache holds pages we allocated in the past during > > napi > > cycle, > > and tracks their

Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system

2021-03-11 Thread Saeed Mahameed
On Wed, 2021-03-10 at 03:04 +0100, Andrew Lunn wrote: > On Tue, Mar 09, 2021 at 06:57:06PM +0100, Eric Dumazet wrote: > > > > > > On 3/9/21 6:10 PM, Shay Agroskin wrote: > > > The page cache holds pages we allocated in the past during napi > > > cycle, > > > and tracks their availability status u

Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system

2021-03-09 Thread Andrew Lunn
On Tue, Mar 09, 2021 at 06:57:06PM +0100, Eric Dumazet wrote: > > > On 3/9/21 6:10 PM, Shay Agroskin wrote: > > The page cache holds pages we allocated in the past during napi cycle, > > and tracks their availability status using page ref count. > > > > The cache can hold up to 2048 pages. Upon

Re: [RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system

2021-03-09 Thread Eric Dumazet
On 3/9/21 6:10 PM, Shay Agroskin wrote: > The page cache holds pages we allocated in the past during napi cycle, > and tracks their availability status using page ref count. > > The cache can hold up to 2048 pages. Upon allocating a page, we check > whether the next entry in the cache contains

[RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system

2021-03-09 Thread Shay Agroskin
The page cache holds pages we allocated in the past during napi cycle, and tracks their availability status using page ref count. The cache can hold up to 2048 pages. Upon allocating a page, we check whether the next entry in the cache contains an unused page, and if so fetch it. If the next page

[RFC Patch v1 1/3] net: ena: implement local page cache (LPC) system

2021-03-09 Thread Shay Agroskin
The page cache holds pages we allocated in the past during napi cycle, and tracks their availability status using page ref count. The cache can hold up to 2048 pages. Upon allocating a page, we check whether the next entry in the cache contains an unused page, and if so fetch it. If the next page