From: Arnaud Lacombe Date: Tue, 1 Dec 2009 08:38:18 +0000 (-0500) Subject: Add compatibility call for dev_get_stats() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ca7993599cd0fdf74604849f7045d4aa707da8b0;p=openwrt%2Fstaging%2Fblogic.git Add compatibility call for dev_get_stats() Added on commit eeda3fd6 by Stephen Hemminger in include/linux/netdevice.h. Signed-off-by: Arnaud Lacombe --- diff --git a/compat-2.6.29.h b/compat-2.6.29.h index ff97b37b6616..cad5e6b4888b 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 #include #include @@ -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)( \