/* Process TX_DATA_ACK CPL messages: -> host Process an acknowledgment of WR completion. Advance snd_una and send the next batch of work requests from the write queue.  */
static void check_wr_invariants(struct s3_conn *c3cn)
/* Process TX_DATA_ACK CPL messages: -> host Process an acknowledgment of WR completion. Advance snd_una and send the next batch of work requests from the write queue.  */
static void check_wr_invariants(struct s3_conn *c3cn)
{
	int pending = count_pending_wrs(c3cn);
	if (unlikely(c3cn->wr_avail + pending != c3cn->wr_max))
		cxgb3i_log_error("TID %u: credit imbalance: avail %u, "
				"pending %u, total should be %u\n",
				c3cn->tid, c3cn->wr_avail, pending,
				c3cn->wr_max);
}