kni: fix build with Linux 4.9.x
authorFerruh Yigit <ferruh.yigit@intel.com>
Thu, 28 Nov 2019 12:15:26 +0000 (12:15 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 28 Nov 2019 13:48:24 +0000 (14:48 +0100)
commitde480bbf138bf61b14dafb806f6e66808871f3e3
tree6ee0767f8c108ea5a55a6ec736a06bec8bbcf10c
parent564f295d1960e2c9401f1c39427a2a921ab3a3c4
kni: fix build with Linux 4.9.x

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_remote()")

Fixes: d965af9e8ae1 ("kni: increase kernel version requirement for VA")

Reported-by: Andrew Rybchenko <arybchenko@solarflare.com>
Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
doc/guides/prog_guide/kernel_nic_interface.rst
doc/guides/rel_notes/release_19_11.rst
kernel/linux/kni/compat.h
lib/librte_eal/linux/eal/eal.c
lib/librte_kni/rte_kni.c