Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193978
b: refs/heads/master
c: b4d562e
h: refs/heads/master
v: v3
  • Loading branch information
Elina Pasheva authored and David S. Miller committed Apr 7, 2010
1 parent 6d95166 commit a71b98b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17a328ca8c04cf88be9a9ef1cb74f359c59f1802
refs/heads/master: b4d562e3c3553ac58c7120555c4e4aefbb090a2a
15 changes: 9 additions & 6 deletions trunk/drivers/net/usb/usbnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,12 +1068,15 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb,
* NOTE: strictly conforming cdc-ether devices should expect
* the ZLP here, but ignore the one-byte packet.
*/
if (!(info->flags & FLAG_SEND_ZLP) && (length % dev->maxpacket) == 0) {
urb->transfer_buffer_length++;
if (skb_tailroom(skb)) {
skb->data[skb->len] = 0;
__skb_put(skb, 1);
}
if (length % dev->maxpacket == 0) {
if (!(info->flags & FLAG_SEND_ZLP)) {
urb->transfer_buffer_length++;
if (skb_tailroom(skb)) {
skb->data[skb->len] = 0;
__skb_put(skb, 1);
}
} else
urb->transfer_flags |= URB_ZERO_PACKET;
}

spin_lock_irqsave(&dev->txq.lock, flags);
Expand Down

0 comments on commit a71b98b

Please sign in to comment.