diff mbox

[2/5] Add compatibility call for dev_get_stats()

Message ID 1259656701-12329-2-git-send-email-lacombar@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Arnaud Lacombe Dec. 1, 2009, 8:38 a.m. UTC
None
diff mbox

Patch

diff --git a/compat-2.6.29.h b/compat-2.6.29.h
index ff97b37..cad5e6b 100644
--- a/compat-2.6.29.h
+++ b/compat-2.6.29.h
@@ -6,6 +6,7 @@ 
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
 
+#include <linux/netdevice.h>
 #include <linux/skbuff.h>
 #include <linux/usb.h>
 
@@ -40,6 +41,12 @@  static inline struct sk_buff *skb_queue_prev(const struct sk_buff_head *list,
 	return skb->prev;
 }
 
+
+static inline struct net_device_stats *dev_get_stats(struct net_device *dev)
+{
+	return dev->get_stats(dev);
+}
+
 extern void usb_unpoison_anchored_urbs(struct usb_anchor *anchor);
 
 #define DIV_ROUND_CLOSEST(x, divisor)(			\