Re: [dpdk-dev] [PATCH] kni: fix build with 4.9.x

2019-11-28 Thread David Marchand
On Thu, Nov 28, 2019 at 2:43 PM Andrew Rybchenko wrote: > On 11/28/19 3:15 PM, Ferruh Yigit wrote: > > The 'get_user_pages_remote()' API is updated in kernel 4.10.0 [1], > > but the check added as > 4.9.0, > > this logic is broken for kernels 4.9.x, because they justify > >> 4.9.0 check but have t

Re: [dpdk-dev] [PATCH] kni: fix build with 4.9.x

2019-11-28 Thread Andrew Rybchenko
On 11/28/19 3:15 PM, Ferruh Yigit wrote: > The 'get_user_pages_remote()' API is updated in kernel 4.10.0 [1], > but the check added as > 4.9.0, > this logic is broken for kernels 4.9.x, because they justify >> 4.9.0 check but have the old API. > Fixing the check as >= 4.10.0 > > [1] > commit 5b56d4

[dpdk-dev] [PATCH] kni: fix build with 4.9.x

2019-11-28 Thread Ferruh Yigit
The 'get_user_pages_remote()' API is updated in kernel 4.10.0 [1], but the check added as > 4.9.0, this logic is broken for kernels 4.9.x, because they justify > 4.9.0 check but have the old API. Fixing the check as >= 4.10.0 [1] commit 5b56d49fc31d ("mm: add locked parameter to get_user_pages_re