]> git.droids-corp.org - dpdk.git/blobdiff - kernel/linux/kni/compat.h
kni: fix build with Linux 4.9.x
[dpdk.git] / kernel / linux / kni / compat.h
index 83ecac2d8cade14437c7a15c311f525c3281eecd..7109474ec5ce4b5fe2aa75f886819df64fbb9a44 100644 (file)
 
 /*
  * iova to kva mapping support can be provided since 4.6.0, but required
- * kernel version increased to > 4.9.0 because of the updates in
+ * kernel version increased to >= 4.10.0 because of the updates in
  * get_user_pages_remote() kernel API
  */
-#if KERNEL_VERSION(4, 9, 0) < LINUX_VERSION_CODE
+#if KERNEL_VERSION(4, 10, 0) <= LINUX_VERSION_CODE
 #define HAVE_IOVA_TO_KVA_MAPPING_SUPPORT
 #endif