X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=kernel%2Flinux%2Fkni%2Fcompat.h;h=5aadebbcd9c1ff81ff59e7123cdfa822657fb300;hb=70401fd7784d;hp=3f8c0bc8715ba513589f937e0219cd808a9b6af9;hpb=acaa9ee991b584d536ffa9529f063d11be7923a4;p=dpdk.git diff --git a/kernel/linux/kni/compat.h b/kernel/linux/kni/compat.h index 3f8c0bc871..5aadebbcd9 100644 --- a/kernel/linux/kni/compat.h +++ b/kernel/linux/kni/compat.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Minimal wrappers to allow compiling kni on older kernels. */ @@ -101,6 +102,11 @@ #undef NET_NAME_UNKNOWN #endif +#if (defined(RHEL_RELEASE_CODE) && \ + (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 5))) +#define ndo_change_mtu ndo_change_mtu_rh74 +#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) #define HAVE_SIGNAL_FUNCTIONS_OWN_HEADER #endif