git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/enic: add VLAN and csum offloads to simple Tx handler
[dpdk.git]
/
kernel
/
linux
/
kni
/
compat.h
diff --git
a/kernel/linux/kni/compat.h
b/kernel/linux/kni/compat.h
index
3f8c0bc
..
5aadebb
100644
(file)
--- 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.
*/
/*
* Minimal wrappers to allow compiling kni on older kernels.
*/
@@
-101,6
+102,11
@@
#undef NET_NAME_UNKNOWN
#endif
#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
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
#define HAVE_SIGNAL_FUNCTIONS_OWN_HEADER
#endif