/* This routine sets up the mailbox for an SLI4 REQUEST_FEATURES mailbox command.  */
void lpfc_request_features(struct lpfc_hba *phba, struct lpfcMboxq *mboxq)
/* This routine sets up the mailbox for an SLI4 REQUEST_FEATURES mailbox command.  */
void lpfc_request_features(struct lpfc_hba *phba, struct lpfcMboxq *mboxq)
{
	memset(mboxq, 0, sizeof(LPFC_MBOXQ_t));
	bf_set(lpfc_mqe_command, &mboxq->u.mqe, MBX_SLI4_REQ_FTRS);
	bf_set(lpfc_mbx_rq_ftr_rq_fcpi, &mboxq->u.mqe.un.req_ftrs, 1);
	if (phba->cfg_enable_bg)
		bf_set(lpfc_mbx_rq_ftr_rq_dif, &mboxq->u.mqe.un.req_ftrs, 1);
	if (phba->max_vpi && phba->cfg_enable_npiv)
		bf_set(lpfc_mbx_rq_ftr_rq_npiv, &mboxq->u.mqe.un.req_ftrs, 1);
	return;
}