summaryrefslogtreecommitdiffstats
path: root/include/linux/usb/usbnet.h
diff options
context:
space:
mode:
authorMing Lei <ming.lei@canonical.com>2013-04-11 04:40:30 +0000
committerDavid S. Miller <davem@davemloft.net>2013-04-11 15:57:16 -0400
commitac64995da872c8ae6f74a5556fdad565829985b0 (patch)
tree31f97306b10b4b78dafac1a383b76189c5f81017 /include/linux/usb/usbnet.h
parent763eff57de893a27f8f18855f17033c92598c423 (diff)
downloadlinux-ac64995da872c8ae6f74a5556fdad565829985b0.tar.gz
linux-ac64995da872c8ae6f74a5556fdad565829985b0.tar.bz2
linux-ac64995da872c8ae6f74a5556fdad565829985b0.zip
usbnet: introduce usbnet_link_change API
This patch introduces the API of usbnet_link_change, so that usbnet can handle link change centrally, which may help to implement killing traffic URBs for saving USB bus bandwidth and host controller power. Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/usb/usbnet.h')
-rw-r--r--include/linux/usb/usbnet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h
index 0e5ac93bab10..eb021b8f53bd 100644
--- a/include/linux/usb/usbnet.h
+++ b/include/linux/usb/usbnet.h
@@ -245,5 +245,6 @@ extern void usbnet_get_drvinfo(struct net_device *, struct ethtool_drvinfo *);
extern int usbnet_nway_reset(struct net_device *net);
extern int usbnet_manage_power(struct usbnet *, int);
+extern void usbnet_link_change(struct usbnet *, bool, bool);
#endif /* __LINUX_USB_USBNET_H */