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
New upstream version 18.11.1
[deb_dpdk.git]
/
kernel
/
linux
/
kni
/
ethtool
/
ixgbe
/
kcompat.h
diff --git
a/kernel/linux/kni/ethtool/ixgbe/kcompat.h
b/kernel/linux/kni/ethtool/ixgbe/kcompat.h
index
7c7d6c3
..
419fd1f
100644
(file)
--- a/
kernel/linux/kni/ethtool/ixgbe/kcompat.h
+++ b/
kernel/linux/kni/ethtool/ixgbe/kcompat.h
@@
-3125,6
+3125,10
@@
static inline int __kc_pci_vfs_assigned(struct pci_dev *dev)
#define SET_ETHTOOL_OPS(netdev, ops) ((netdev)->ethtool_ops = (ops))
#endif /* >= 3.16.0 */
#define SET_ETHTOOL_OPS(netdev, ops) ((netdev)->ethtool_ops = (ops))
#endif /* >= 3.16.0 */
+#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0) )
+#define dev_open(x) dev_open(x, NULL)
+#endif /* >= 5.0.0 */
+
/*
* vlan_tx_tag_* macros renamed to skb_vlan_tag_* (Linux commit: df8a39defad4)
* For older kernels backported this commit, need to use renamed functions.
/*
* vlan_tx_tag_* macros renamed to skb_vlan_tag_* (Linux commit: df8a39defad4)
* For older kernels backported this commit, need to use renamed functions.