Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255619
b: refs/heads/master
c: 570773c
h: refs/heads/master
i:
  255617: 26d5976
  255615: dfa3321
v: v3
  • Loading branch information
Richard Cochran authored and David S. Miller committed Jun 20, 2011
1 parent 6b12fbb commit 6d45fe3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: d76b7e2faaabae4805ae7ebf31ad64a33268f44f
refs/heads/master: 570773c5801cc6c322534d6b1d1551e23664103e
9 changes: 7 additions & 2 deletions trunk/drivers/net/xilinx_emaclite.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,8 @@ static void xemaclite_rx_handler(struct net_device *dev)
dev->stats.rx_packets++;
dev->stats.rx_bytes += len;

netif_rx(skb); /* Send the packet upstream */
if (!skb_defer_rx_timestamp(skb))
netif_rx(skb); /* Send the packet upstream */
}

/**
Expand Down Expand Up @@ -1030,15 +1031,19 @@ static int xemaclite_send(struct sk_buff *orig_skb, struct net_device *dev)
spin_lock_irqsave(&lp->reset_lock, flags);
if (xemaclite_send_data(lp, (u8 *) new_skb->data, len) != 0) {
/* If the Emaclite Tx buffer is busy, stop the Tx queue and
* defer the skb for transmission at a later point when the
* defer the skb for transmission during the ISR, after the
* current transmission is complete */
netif_stop_queue(dev);
lp->deferred_skb = new_skb;
/* Take the time stamp now, since we can't do this in an ISR. */
skb_tx_timestamp(new_skb);
spin_unlock_irqrestore(&lp->reset_lock, flags);
return 0;
}
spin_unlock_irqrestore(&lp->reset_lock, flags);

skb_tx_timestamp(new_skb);

dev->stats.tx_bytes += len;
dev_kfree_skb(new_skb);

Expand Down

0 comments on commit 6d45fe3

Please sign in to comment.