usbnet.c (1d8fcba1de632d7a43349788ad534c5a32c5a44c) | usbnet.c (dbcdd4d58c7230bea3157d56d6ef77c493b3865b) |
---|---|
1/* 2 * USB Network driver infrastructure 3 * Copyright (C) 2000-2005 by David Brownell 4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 1204 unchanged lines hidden (view full) --- 1213/*-------------------------------------------------------------------------*/ 1214 1215void usbnet_tx_timeout (struct net_device *net) 1216{ 1217 struct usbnet *dev = netdev_priv(net); 1218 1219 unlink_urbs (dev, &dev->txq); 1220 tasklet_schedule (&dev->bh); | 1/* 2 * USB Network driver infrastructure 3 * Copyright (C) 2000-2005 by David Brownell 4 * Copyright (C) 2003-2005 David Hollis <dhollis@davehollis.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 1204 unchanged lines hidden (view full) --- 1213/*-------------------------------------------------------------------------*/ 1214 1215void usbnet_tx_timeout (struct net_device *net) 1216{ 1217 struct usbnet *dev = netdev_priv(net); 1218 1219 unlink_urbs (dev, &dev->txq); 1220 tasklet_schedule (&dev->bh); |
1221 1222 // FIXME: device recovery -- reset? | 1221 /* this needs to be handled individually because the generic layer 1222 * doesn't know what is sufficient and could not restore private 1223 * information if a remedy of an unconditional reset were used. 1224 */ 1225 if (dev->driver_info->recover) 1226 (dev->driver_info->recover)(dev); |
1223} 1224EXPORT_SYMBOL_GPL(usbnet_tx_timeout); 1225 1226/*-------------------------------------------------------------------------*/ 1227 1228static int build_dma_sg(const struct sk_buff *skb, struct urb *urb) 1229{ 1230 unsigned num_sgs, total_len = 0; --- 841 unchanged lines hidden --- | 1227} 1228EXPORT_SYMBOL_GPL(usbnet_tx_timeout); 1229 1230/*-------------------------------------------------------------------------*/ 1231 1232static int build_dma_sg(const struct sk_buff *skb, struct urb *urb) 1233{ 1234 unsigned num_sgs, total_len = 0; --- 841 unchanged lines hidden --- |