|
@@ -1019,9 +1019,10 @@ static int xemaclite_close(struct net_device *dev)
|
|
|
* deferred and the Tx queue is stopped so that the deferred socket buffer can
|
|
|
* be transmitted when the Emaclite device is free to transmit data.
|
|
|
*
|
|
|
- * Return: 0, always.
|
|
|
+ * Return: NETDEV_TX_OK, always.
|
|
|
*/
|
|
|
-static int xemaclite_send(struct sk_buff *orig_skb, struct net_device *dev)
|
|
|
+static netdev_tx_t
|
|
|
+xemaclite_send(struct sk_buff *orig_skb, struct net_device *dev)
|
|
|
{
|
|
|
struct net_local *lp = netdev_priv(dev);
|
|
|
struct sk_buff *new_skb;
|
|
@@ -1043,7 +1044,7 @@ static int xemaclite_send(struct sk_buff *orig_skb, struct net_device *dev)
|
|
|
/* Take the time stamp now, since we can't do this in an ISR. */
|
|
|
skb_tx_timestamp(new_skb);
|
|
|
spin_unlock_irqrestore(&lp->reset_lock, flags);
|
|
|
- return 0;
|
|
|
+ return NETDEV_TX_OK;
|
|
|
}
|
|
|
spin_unlock_irqrestore(&lp->reset_lock, flags);
|
|
|
|
|
@@ -1052,7 +1053,7 @@ static int xemaclite_send(struct sk_buff *orig_skb, struct net_device *dev)
|
|
|
dev->stats.tx_bytes += len;
|
|
|
dev_consume_skb_any(new_skb);
|
|
|
|
|
|
- return 0;
|
|
|
+ return NETDEV_TX_OK;
|
|
|
}
|
|
|
|
|
|
/**
|