/* This function is called from the iocb ring event handlers when put pointer is ahead of the get pointer for a ring. This function signal an error attention condition to the worker thread and the worker thread will transition the HBA to offline state.  */
static void lpfc_sli_rsp_pointers_error(struct lpfc_hba *phba, struct lpfc_sli_ring *pring)
/* This function is called from the iocb ring event handlers when put pointer is ahead of the get pointer for a ring. This function signal an error attention condition to the worker thread and the worker thread will transition the HBA to offline state.  */
static void lpfc_sli_rsp_pointers_error(struct lpfc_hba *phba, struct lpfc_sli_ring *pring)
{
	struct lpfc_pgp *pgp = &phba->port_gp[pring->ringno];
	lpfc_printf_log(phba, KERN_ERR, LOG_SLI,
			"0312 Ring %d handler: portRspPut %d "
			"is bigger than rsp ring %d\n",
			pring->ringno, le32_to_cpu(pgp->rspPutInx),
			pring->numRiocb);
	phba->link_state = LPFC_HBA_ERROR;
	phba->work_ha |= HA_ERATT;
	phba->work_hs = HS_FFER3;
	lpfc_worker_wake_up(phba);
	return;
}