/* mc32_flush_tx_ring - free transmit ring @lp: Local data of 3c527 to flush the tx ring of  */
static void mc32_flush_tx_ring(struct net_device *dev)
/* mc32_flush_tx_ring - free transmit ring @lp: Local data of 3c527 to flush the tx ring of  */
static void mc32_flush_tx_ring(struct net_device *dev)
{
	struct mc32_local *lp = netdev_priv(dev);
	int i;
	for (i=0; i < TX_RING_LEN; i++)
	{
		if (lp->tx_ring[i].skb)
		{
			dev_kfree_skb(lp->tx_ring[i].skb);
			lp->tx_ring[i].skb = NULL;
		}
	}
	atomic_set(&lp->tx_count, 0);
	atomic_set(&lp->tx_ring_head, 0);
	lp->tx_ring_tail=0;
}