/* returns the number of ELS/CT IOCBs to reserve  */
int lpfc_sli4_get_els_iocb_cnt(struct lpfc_hba *phba)
/* returns the number of ELS/CT IOCBs to reserve  */
int lpfc_sli4_get_els_iocb_cnt(struct lpfc_hba *phba)
{
	int max_xri = phba->sli4_hba.max_cfg_param.max_xri;
	if (phba->sli_rev == LPFC_SLI_REV4) {
		if (max_xri <= 100)
			return 10;
		else if (max_xri <= 256)
			return 25;
		else if (max_xri <= 512)
			return 50;
		else if (max_xri <= 1024)
			return 100;
		else
			return 150;
	} else
		return 0;
}