datapath: Convert upcalls and ODP_EXECUTE to use AF_NETLINK socket layer.
[openvswitch] / datapath / linux-2.6 / compat-2.6 / netdevice.c
index 298045846b164715086aef581c5c1c64a0e8a65d..1a6f327ad106ec00a74dd447327b5a193e0b4229 100644 (file)
@@ -14,11 +14,11 @@ struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
 {
        const struct net_device_stats *stats;
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
        stats = dev->get_stats(dev);
-#else  /* 2.6.28 <= kernel version < 2.6.36 */
+#else  /* 2.6.28 < kernel version < 2.6.36 */
        stats = (dev_get_stats)(dev);
-#endif /* 2.6.28 <= kernel version < 2.6.36 */
+#endif /* 2.6.28 < kernel version < 2.6.36 */
 
        storage->rx_packets = stats->rx_packets;
        storage->tx_packets = stats->tx_packets;