]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/kernel/linux/kni/compat.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / kernel / linux / kni / compat.h
index 562d8bf94a6ee5a43d24311529993851c2f73df9..9ee45dbf6f4435999fd5e01c675136d9329c4772 100644 (file)
 #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
+
+#if KERNEL_VERSION(5, 6, 0) <= LINUX_VERSION_CODE
+#define HAVE_TX_TIMEOUT_TXQUEUE
+#endif