Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Imported Upstream version 16.07-rc1
[deb_dpdk.git]
/
lib
/
librte_eal
/
linuxapp
/
kni
/
compat.h
diff --git
a/lib/librte_eal/linuxapp/kni/compat.h
b/lib/librte_eal/linuxapp/kni/compat.h
index
cf100b6
..
647ba3c
100644
(file)
--- a/
lib/librte_eal/linuxapp/kni/compat.h
+++ b/
lib/librte_eal/linuxapp/kni/compat.h
@@
-14,16
+14,27
@@
#endif /* < 2.6.39 */
#endif /* < 2.6.39 */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33)
+#define HAVE_SIMPLIFIED_PERNET_OPERATIONS
+#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
#define sk_sleep(s) (s)->sk_sleep
#define sk_sleep(s) (s)->sk_sleep
+#endif
-#endif /* < 2.6.35 */
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0)
+#define HAVE_CHANGE_CARRIER_CB
+#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,
19,
0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,
19,
0)
#define HAVE_IOV_ITER_MSGHDR
#endif
#define HAVE_IOV_ITER_MSGHDR
#endif
-#if
( LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0)
)
+#if
LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0
)
#define HAVE_KIOCB_MSG_PARAM
#define HAVE_KIOCB_MSG_PARAM
-#endif /* < 4.1.0 */
+#define HAVE_REBUILD_HEADER
+#endif
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
+#define HAVE_TRANS_START_HELPER
+#endif