Skip to content

Commit

Permalink
ucc_geth: returns NETDEV_TX_BUSY when BD ring is full
Browse files Browse the repository at this point in the history
Returns NETDEV_TX_BUSY when BD ring is full.

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Li Yang authored and Jeff Garzik committed Mar 6, 2007
1 parent a394f01 commit 18babd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -3607,6 +3607,7 @@ static int ucc_geth_start_xmit(struct sk_buff *skb, struct net_device *dev)
if (bd == ugeth->confBd[txQ]) {
if (!netif_queue_stopped(dev))
netif_stop_queue(dev);
return NETDEV_TX_BUSY;
}

ugeth->txBd[txQ] = bd;
Expand All @@ -3622,7 +3623,7 @@ static int ucc_geth_start_xmit(struct sk_buff *skb, struct net_device *dev)

spin_unlock_irq(&ugeth->lock);

return 0;
return NETDEV_TX_OK;
}

static int ucc_geth_rx(struct ucc_geth_private *ugeth, u8 rxQ, int rx_work_limit)
Expand Down

0 comments on commit 18babd3

Please sign in to comment.