* [Patch 2/3] ucc_geth: returns NETDEV_TX_BUSY when BD ring is full
@ 2007-03-06 8:54 Li Yang
0 siblings, 0 replies; only message in thread
From: Li Yang @ 2007-03-06 8:54 UTC (permalink / raw)
To: jeff; +Cc: netdev
Returns NETDEV_TX_BUSY when BD ring is full.
Signed-off-by: Li Yang <leoli@freescale.com>
---
drivers/net/ucc_geth.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 639e1e6..dab88b9 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -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;
@@ -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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-06 8:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 8:54 [Patch 2/3] ucc_geth: returns NETDEV_TX_BUSY when BD ring is full Li Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).