/* Checks if there are enough descriptors to restart a suspended Tx queue.  */
static int should_restart_tx(const struct sge_txq *q)
/* Checks if there are enough descriptors to restart a suspended Tx queue.  */
static int should_restart_tx(const struct sge_txq *q)
{
	unsigned int r = q->processed - q->cleaned;
	return q->in_use - r < (q->size >> 1);
}