/* CPL (Chelsio Protocol Language) defines a message passing interface between the host driver and T3 asic. The section below implments CPLs that related to iscsi tcp connection open/close/abort and data send/receive. CPL connection active open request: host ->  */
static unsigned int find_best_mtu(const struct t3c_data *d, unsigned short mtu)
/* CPL (Chelsio Protocol Language) defines a message passing interface between the host driver and T3 asic. The section below implments CPLs that related to iscsi tcp connection open/close/abort and data send/receive. CPL connection active open request: host ->  */
static unsigned int find_best_mtu(const struct t3c_data *d, unsigned short mtu)
{
	int i = 0;
	while (i < d->nmtus - 1 && d->mtus[i + 1] <= mtu)
		++i;
	return i;
}