Skip to content

Commit

Permalink
ipg: fix queue stop condition in the xmit handler
Browse files Browse the repository at this point in the history
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
  • Loading branch information
Francois Romieu committed Jan 17, 2008
1 parent 0da1b99 commit dafdec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ipg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1994,7 +1994,7 @@ static int ipg_nic_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
ipg_w32(IPG_DC_TX_DMA_POLL_NOW, DMA_CTRL);

if (sp->tx_current == (sp->tx_dirty + IPG_TFDLIST_LENGTH))
netif_wake_queue(dev);
netif_stop_queue(dev);

spin_unlock_irqrestore(&sp->lock, flags);

Expand Down

0 comments on commit dafdec7

Please sign in to comment.