Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63987
b: refs/heads/master
c: 10a273a
h: refs/heads/master
i:
  63985: 5b8ab5a
  63983: 236f038
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Jeff Garzik committed Aug 14, 2007
1 parent fa13378 commit 2445b61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: a6d89915aa668776494fec8568d46aa6043ff848
refs/heads/master: 10a273a67343e1f317652d69b09a212ee0284b44
7 changes: 4 additions & 3 deletions trunk/drivers/net/xen-netfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,16 +566,17 @@ static int xennet_start_xmit(struct sk_buff *skb, struct net_device *dev)
if (notify)
notify_remote_via_irq(np->netdev->irq);

np->stats.tx_bytes += skb->len;
np->stats.tx_packets++;

/* Note: It is not safe to access skb after xennet_tx_buf_gc()! */
xennet_tx_buf_gc(dev);

if (!netfront_tx_slot_available(np))
netif_stop_queue(dev);

spin_unlock_irq(&np->tx_lock);

np->stats.tx_bytes += skb->len;
np->stats.tx_packets++;

return 0;

drop:
Expand Down

0 comments on commit 2445b61

Please sign in to comment.