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 3.16
[dpdk.git]
/
lib
/
librte_eal
/
linuxapp
/
kni
/
ethtool
/
ixgbe
/
kcompat.h
diff --git
a/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h
b/lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h
index
b539315
..
e327d65
100644
(file)
--- a/
lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h
+++ b/
lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.h
@@
-3135,4
+3135,9
@@
static inline int __kc_pci_vfs_assigned(struct pci_dev *dev)
#define pci_vfs_assigned(dev) __kc_pci_vfs_assigned(dev)
#endif
+
+#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0) )
+#define SET_ETHTOOL_OPS(netdev, ops) ((netdev)->ethtool_ops = (ops))
+#endif /* >= 3.16.0 */
+
#endif /* _KCOMPAT_H_ */