|
@@ -1102,7 +1102,7 @@ static int emac_dev_xmit(struct sk_buff *skb, struct net_device *ndev)
|
|
|
/* If there is no more tx desc left free then we need to
|
|
/* If there is no more tx desc left free then we need to
|
|
|
* tell the kernel to stop sending us tx frames.
|
|
* tell the kernel to stop sending us tx frames.
|
|
|
*/
|
|
*/
|
|
|
- if (unlikely(cpdma_check_free_tx_desc(priv->txch)))
|
|
|
|
|
|
|
+ if (unlikely(cpdma_check_free_tx_desc(priv->txchan)))
|
|
|
netif_stop_queue(ndev);
|
|
netif_stop_queue(ndev);
|
|
|
|
|
|
|
|
return NETDEV_TX_OK;
|
|
return NETDEV_TX_OK;
|