|
@@ -1944,7 +1944,13 @@ lpfc_cmpl_prli_prli_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
|
|
|
|
|
|
/* Target driver cannot solicit NVME FB. */
|
|
|
if (bf_get_be32(prli_tgt, nvpr)) {
|
|
|
+ /* Complete the nvme target roles. The transport
|
|
|
+ * needs to know if the rport is capable of
|
|
|
+ * discovery in addition to its role.
|
|
|
+ */
|
|
|
ndlp->nlp_type |= NLP_NVME_TARGET;
|
|
|
+ if (bf_get_be32(prli_disc, nvpr))
|
|
|
+ ndlp->nlp_type |= NLP_NVME_DISCOVERY;
|
|
|
if ((bf_get_be32(prli_fba, nvpr) == 1) &&
|
|
|
(bf_get_be32(prli_fb_sz, nvpr) > 0) &&
|
|
|
(phba->cfg_nvme_enable_fb) &&
|