/* called, if tx hangs. Schedules a task that resets the interface  */
static void spider_net_tx_timeout(struct net_device *netdev)
/* called, if tx hangs. Schedules a task that resets the interface  */
static void spider_net_tx_timeout(struct net_device *netdev)
{
	struct spider_net_card *card;
	card = netdev_priv(netdev);
	atomic_inc(&card->tx_timeout_task_counter);
	if (netdev->flags & IFF_UP)
		schedule_work(&card->tx_timeout_task);
	else
		atomic_dec(&card->tx_timeout_task_counter);
	card->spider_stats.tx_timeouts++;
}