Skip to contentSkip to conversation

Add compatibility call for dev_get_stats()

PATCH Applied Arnaud Lacombe 1 participant 1 message Nov 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 10/13 Add compatibility call for dev_get_stats()

Added on commit eeda3fd6 by Stephen Hemminger in include/linux/netdevice.h.

---
 compat-2.6.29.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
compat-2.6.29.h +1 -0
index ff97b37..cad5e6b 100644
@@ -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)( \

Signature · 1 line
1.6.3.3.385.g60647.dirty