src/sys/dev/cxgbe/t4_sge.c
/*
 * Must drain the wrq or make sure that someone else will.
 */
Must drain the wrq or make sure that someone else will.
Must drain the wrq or make sure that someone else will .
static void
wrq_tx_drain(void *arg, int n)
{
	struct sge_wrq *wrq = arg;
	struct sge_eq *eq = &wrq->eq;
	EQ_LOCK(eq);
	if (TAILQ_EMPTY(&wrq->incomplete_wrs) && !STAILQ_EMPTY(&wrq->wr_list))
		drain_wrq_wr_list(wrq->adapter, wrq);
	EQ_UNLOCK(eq);
}
static void wrq_tx_drain ( void * arg , int n ) { struct sge_wrq * wrq = arg ; struct sge_eq * eq = & wrq -> eq ; EQ_LOCK ( eq ) ; if ( TAILQ_EMPTY ( & wrq -> incomplete_wrs ) && ! STAILQ_EMPTY ( & wrq -> wr_list ) ) drain_wrq_wr_list ( wrq -> adapter , wrq ) ; EQ_UNLOCK ( eq ) ; }
Must drain the wrq or make sure that someone else will.
Must drain the wrq or make sure that someone else will .