/* Release resources when all the ports and offloading have been stopped.  */
static void cxgb_down(struct adapter *adapter)
/* Release resources when all the ports and offloading have been stopped.  */
static void cxgb_down(struct adapter *adapter)
{
	t3_sge_stop(adapter);
	spin_lock_irq(&adapter->work_lock);
	t3_intr_disable(adapter);
	spin_unlock_irq(&adapter->work_lock);
	free_irq_resources(adapter);
	quiesce_rx(adapter);
	flush_workqueue(cxgb3_wq);
}