projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nicira-ext: Generalize nx_mp_fields into nx_hash_fields.
[openvswitch]
/
include
/
linux
/
if_link.h
diff --git
a/include/linux/if_link.h
b/include/linux/if_link.h
index 6181a5d593bb9eb22d31bdc677a0d43f157136a4..55d99e46ea81340d25cd855a7a84201ef4f8fa1a 100644
(file)
--- a/
include/linux/if_link.h
+++ b/
include/linux/if_link.h
@@
-3,6
+3,10
@@
#include <linux/version.h>
#include <linux/version.h>
+#ifdef HAVE_RTNL_LINK_STATS64
+#include_next <linux/if_link.h>
+#else /* !HAVE_RTNL_LINK_STATS64 */
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
#include_next <linux/if_link.h>
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
#include_next <linux/if_link.h>
#else
@@
-12,9
+16,9
@@
* we really need from <linux/if_link.h> is struct rtnl_link_stats64, which in
* turn only really needs __u64. */
#include <linux/types.h>
* we really need from <linux/if_link.h> is struct rtnl_link_stats64, which in
* turn only really needs __u64. */
#include <linux/types.h>
-#endif
+#include <linux/netlink.h>
+#endif /* kernel < 2.6.19 */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
/* The main device statistics structure */
struct rtnl_link_stats64 {
__u64 rx_packets; /* total packets received */
/* The main device statistics structure */
struct rtnl_link_stats64 {
__u64 rx_packets; /* total packets received */
@@
-47,6
+51,6
@@
struct rtnl_link_stats64 {
__u64 rx_compressed;
__u64 tx_compressed;
};
__u64 rx_compressed;
__u64 tx_compressed;
};
-#endif /*
linux kernel < 2.6.35
*/
+#endif /*
!HAVE_RTNL_LINK_STATS64
*/
#endif
#endif