usbnet.c (d63638440cfad75fb339fd1261bea0485c7c3ecc) usbnet.c (23ba07991dad5a96a024c1b45cb602eef5f83df8)
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

--- 1043 unchanged lines hidden (view full) ---

1052 struct usbnet *dev = netdev_priv(net);
1053 int length;
1054 struct urb *urb = NULL;
1055 struct skb_data *entry;
1056 struct driver_info *info = dev->driver_info;
1057 unsigned long flags;
1058 int retval;
1059
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

--- 1043 unchanged lines hidden (view full) ---

1052 struct usbnet *dev = netdev_priv(net);
1053 int length;
1054 struct urb *urb = NULL;
1055 struct skb_data *entry;
1056 struct driver_info *info = dev->driver_info;
1057 unsigned long flags;
1058 int retval;
1059
1060 skb_tx_timestamp(skb);
1060 if (skb)
1061 skb_tx_timestamp(skb);
1061
1062 // some devices want funky USB-level framing, for
1063 // win32 driver (usually) and/or hardware quirks
1064 if (info->tx_fixup) {
1065 skb = info->tx_fixup (dev, skb, GFP_ATOMIC);
1066 if (!skb) {
1067 if (netif_msg_tx_err(dev)) {
1068 netif_dbg(dev, tx_err, dev->net, "can't tx_fixup skb\n");

--- 498 unchanged lines hidden ---
1062
1063 // some devices want funky USB-level framing, for
1064 // win32 driver (usually) and/or hardware quirks
1065 if (info->tx_fixup) {
1066 skb = info->tx_fixup (dev, skb, GFP_ATOMIC);
1067 if (!skb) {
1068 if (netif_msg_tx_err(dev)) {
1069 netif_dbg(dev, tx_err, dev->net, "can't tx_fixup skb\n");

--- 498 unchanged lines hidden ---