X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Flinux%2Fkni%2Fcompat.h;h=7109474ec5ce4b5fe2aa75f886819df64fbb9a44;hb=2e02a2afff77d8cf7acb9a3bf5272c582b688307;hp=3c575c70a27c667062768237d264dba914f8d78d;hpb=3d5501d568aacbcf71832691278f5656d3a9b649;p=dpdk.git diff --git a/kernel/linux/kni/compat.h b/kernel/linux/kni/compat.h index 3c575c70a2..7109474ec5 100644 --- a/kernel/linux/kni/compat.h +++ b/kernel/linux/kni/compat.h @@ -114,6 +114,19 @@ #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