]> git.droids-corp.org - dpdk.git/blobdiff - kernel/linux/kni/compat.h
ethdev: fix VLAN offloads set if no driver callback
[dpdk.git] / kernel / linux / kni / compat.h
index 3c575c70a27c667062768237d264dba914f8d78d..7109474ec5ce4b5fe2aa75f886819df64fbb9a44 100644 (file)
 #define ndo_change_mtu ndo_change_mtu_rh74
 #endif
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
+#define HAVE_MAX_MTU_PARAM
+#endif
+
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
 #define HAVE_SIGNAL_FUNCTIONS_OWN_HEADER
 #endif
+
+/*
+ * iova to kva mapping support can be provided since 4.6.0, but required
+ * kernel version increased to >= 4.10.0 because of the updates in
+ * get_user_pages_remote() kernel API
+ */
+#if KERNEL_VERSION(4, 10, 0) <= LINUX_VERSION_CODE
+#define HAVE_IOVA_TO_KVA_MAPPING_SUPPORT
+#endif