/* Process a CPL_ACT_OPEN_RPL message: -> host Handle active open failures.  */
static int act_open_rpl_status_to_errno(int status)
/* Process a CPL_ACT_OPEN_RPL message: -> host Handle active open failures.  */
static int act_open_rpl_status_to_errno(int status)
{
	switch (status) {
	case CPL_ERR_CONN_RESET:
		return -ECONNREFUSED;
	case CPL_ERR_ARP_MISS:
		return -EHOSTUNREACH;
	case CPL_ERR_CONN_TIMEDOUT:
		return -ETIMEDOUT;
	case CPL_ERR_TCAM_FULL:
		return -ENOMEM;
	case CPL_ERR_CONN_EXIST:
		cxgb3i_log_error("ACTIVE_OPEN_RPL: 4-tuple in use\n");
		return -EADDRINUSE;
	default:
		return -EIO;
	}
}