Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171505
b: refs/heads/master
c: 836cf7f
h: refs/heads/master
i:
  171503: 865d327
v: v3
  • Loading branch information
Anton Vorontsov authored and David S. Miller committed Nov 12, 2009
1 parent 4071d87 commit 5e79908
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 499428ed28d800eb5cf25889bb1e026637d99dfc
refs/heads/master: 836cf7faf8c75743477ed6ed341cce491f3183fb
8 changes: 8 additions & 0 deletions trunk/drivers/net/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -2943,14 +2943,22 @@ static irqreturn_t gfar_error(int irq, void *grp_id)
if (events & IEVENT_CRL)
dev->stats.tx_aborted_errors++;
if (events & IEVENT_XFUN) {
unsigned long flags;

if (netif_msg_tx_err(priv))
printk(KERN_DEBUG "%s: TX FIFO underrun, "
"packet dropped.\n", dev->name);
dev->stats.tx_dropped++;
priv->extra_stats.tx_underrun++;

local_irq_save(flags);
lock_tx_qs(priv);

/* Reactivate the Tx Queues */
gfar_write(&regs->tstat, gfargrp->tstat);

unlock_tx_qs(priv);
local_irq_restore(flags);
}
if (netif_msg_tx_err(priv))
printk(KERN_DEBUG "%s: Transmit Error\n", dev->name);
Expand Down

0 comments on commit 5e79908

Please sign in to comment.