linux/drivers/scsi/lpfc
James Smart dc53a61852 scsi: lpfc: Fix NVMEI's handling of NVMET's PRLI response attributes
Code review of NVMEI's FC_PORT_ROLE_NVME_DISCOVERY looked wrong.

Discussions with storage architecture team clarified NVMEI's audit of
the PRLI response port roles.  Following up discussion with code review
showed a few minor corrections were required - especially in
anticipation of NVME auto discovery.

During PRLI, NVMEI should sent prli_init - which it it does.  NVMET
should send prli_tgt and prli_disc - which it does.  When NVMEI receives
a PRLI Response now, it audits the incoming target bits and stores the
attributes in the corresponding NDLP.  Later, when NVMEI registers the
NVME rport, it uses the stored ndlp attributes to set the rport
port_roles correctly.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-05-16 21:24:17 -04:00
..
lpfc_attr.c scsi: lpfc: Added recovery logic for running out of NVMET IO context resources 2017-05-16 21:22:22 -04:00
lpfc_attr.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_bsg.c Fix crash after issuing lip reset 2017-04-24 09:25:49 +02:00
lpfc_bsg.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_compat.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_crtn.h scsi: lpfc: Added recovery logic for running out of NVMET IO context resources 2017-05-16 21:22:22 -04:00
lpfc_ct.c scsi: lpfc: Fix NVME I+T not registering NVME as a supported FC4 type 2017-05-16 21:22:52 -04:00
lpfc_debugfs.c scsi: lpfc: Fix debugfs root inode "lpfc" not getting deleted on driver unload. 2017-05-16 21:23:13 -04:00
lpfc_debugfs.h scsi: lpfc: fix building without debugfs support 2017-03-23 11:28:43 -04:00
lpfc_disc.h scsi: lpfc: Fix NVMEI's handling of NVMET's PRLI response attributes 2017-05-16 21:24:17 -04:00
lpfc_els.c scsi: lpfc: Fix NVMEI driver not decrementing counter causing bad rport state. 2017-05-16 21:19:10 -04:00
lpfc_hbadisc.c scsi: lpfc: Fix system crash when port is reset. 2017-05-16 21:17:54 -04:00
lpfc_hw4.h scsi: lpfc: Separate NVMET data buffer pool fir ELS/CT. 2017-05-16 21:21:17 -04:00
lpfc_hw.h Add Fabric assigned WWN support. 2017-04-24 09:25:49 +02:00
lpfc_ids.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_init.c scsi: lpfc: Added recovery logic for running out of NVMET IO context resources 2017-05-16 21:22:22 -04:00
lpfc_logmsg.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_mbox.c Update ABORT processing for NVMET. 2017-04-24 09:25:49 +02:00
lpfc_mem.c scsi: lpfc: Separate NVMET RQ buffer posting from IO resources SGL/iocbq/context 2017-05-16 21:21:47 -04:00
lpfc_nl.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_nportdisc.c scsi: lpfc: Fix NVMEI's handling of NVMET's PRLI response attributes 2017-05-16 21:24:17 -04:00
lpfc_nvme.c lpfc: Fix memory corruption of the lpfc_ncmd->list pointers 2017-04-25 20:00:58 +02:00
lpfc_nvme.h lpfc: Fix memory corruption of the lpfc_ncmd->list pointers 2017-04-25 20:00:58 +02:00
lpfc_nvmet.c scsi: lpfc: Added recovery logic for running out of NVMET IO context resources 2017-05-16 21:22:22 -04:00
lpfc_nvmet.h scsi: lpfc: Separate NVMET RQ buffer posting from IO resources SGL/iocbq/context 2017-05-16 21:21:47 -04:00
lpfc_scsi.c scsi: lpfc: add transport eh_timed_out reference 2017-03-06 23:04:22 -05:00
lpfc_scsi.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_sli4.h scsi: lpfc: Cleanup entry_repost settings on SLI4 queues 2017-05-16 21:23:42 -04:00
lpfc_sli.c scsi: lpfc: Cleanup entry_repost settings on SLI4 queues 2017-05-16 21:23:42 -04:00
lpfc_sli.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc_version.h lpfc revison 11.2.0.12 2017-04-24 09:25:49 +02:00
lpfc_vport.c Fix crash after issuing lip reset 2017-04-24 09:25:49 +02:00
lpfc_vport.h scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00
lpfc.h scsi: lpfc: Added recovery logic for running out of NVMET IO context resources 2017-05-16 21:22:22 -04:00
Makefile scsi: lpfc: Update copyrights 2017-02-22 18:41:44 -05:00