summaryrefslogtreecommitdiff
path: root/patches/0075-ndo-stats-64/usbnet.patch
blob: 7b48bfeb8dfd6ccf97e48037411e1d6c9957b04c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -1014,6 +1014,9 @@ void usbnet_get_stats64(struct net_devic
 	}
 }
 EXPORT_SYMBOL_GPL(usbnet_get_stats64);
+#if LINUX_VERSION_IS_LESS(4,11,0)
+EXPORT_SYMBOL_GPL(bp_usbnet_get_stats64);
+#endif
 
 u32 usbnet_get_link (struct net_device *net)
 {
--- a/include/linux/usb/usbnet.h
+++ b/include/linux/usb/usbnet.h
@@ -283,5 +283,9 @@ extern void usbnet_status_stop(struct us
 extern void usbnet_update_max_qlen(struct usbnet *dev);
 extern void usbnet_get_stats64(struct net_device *dev,
 			       struct rtnl_link_stats64 *stats);
+#if LINUX_VERSION_IS_LESS(4,11,0)
+struct rtnl_link_stats64 *
+bp_usbnet_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats);
+#endif
 
 #endif /* __LINUX_USB_USBNET_H */