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
kni: fix build with kernel 4.9
[dpdk.git]
/
lib
/
librte_eal
/
linuxapp
/
kni
/
ethtool
/
igb
/
kcompat.h
diff --git
a/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h
b/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h
index
69e0e7a
..
84826b2
100644
(file)
--- a/
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h
+++ b/
lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h
@@
-3929,4
+3929,8
@@
skb_set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type)
#define vlan_tx_tag_present skb_vlan_tag_present
#endif
+#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0) )
+#define HAVE_VF_VLAN_PROTO
+#endif /* >= 4.9.0 */
+
#endif /* _KCOMPAT_H_ */