Commit c57512a6 authored by David S. Miller's avatar David S. Miller

[SUNGEM]: Use NETDEV_TX_foo instead of magic constants.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1ee2a94c
...@@ -973,7 +973,7 @@ static int gem_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -973,7 +973,7 @@ static int gem_start_xmit(struct sk_buff *skb, struct net_device *dev)
if (!spin_trylock(&gp->tx_lock)) { if (!spin_trylock(&gp->tx_lock)) {
/* Tell upper layer to requeue */ /* Tell upper layer to requeue */
local_irq_restore(flags); local_irq_restore(flags);
return -1; return NETDEV_TX_LOCKED;
} }
/* This is a hard error, log it. */ /* This is a hard error, log it. */
...@@ -982,7 +982,7 @@ static int gem_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -982,7 +982,7 @@ static int gem_start_xmit(struct sk_buff *skb, struct net_device *dev)
spin_unlock_irqrestore(&gp->tx_lock, flags); spin_unlock_irqrestore(&gp->tx_lock, flags);
printk(KERN_ERR PFX "%s: BUG! Tx Ring full when queue awake!\n", printk(KERN_ERR PFX "%s: BUG! Tx Ring full when queue awake!\n",
dev->name); dev->name);
return 1; return NETDEV_TX_BUSY;
} }
entry = gp->tx_new; entry = gp->tx_new;
...@@ -1070,7 +1070,7 @@ static int gem_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -1070,7 +1070,7 @@ static int gem_start_xmit(struct sk_buff *skb, struct net_device *dev)
dev->trans_start = jiffies; dev->trans_start = jiffies;
return 0; return NETDEV_TX_OK;
} }
/* Jumbo-grams don't seem to work :-( */ /* Jumbo-grams don't seem to work :-( */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment