/* Returns true if a command queue has enough available descriptors that we can resume Tx operation after temporarily disabling its packet queue.  */
static int enough_free_Tx_descs(const struct cmdQ *q)
/* Returns true if a command queue has enough available descriptors that we can resume Tx operation after temporarily disabling its packet queue.  */
static int enough_free_Tx_descs(const struct cmdQ *q)
{
	unsigned int r = q->processed - q->cleaned;
	return q->in_use - r < (q->size >> 1);
}