linux-stable/drivers/scsi/qla2xxx
Roman Bolshakov fd1de5830a scsi: qla2xxx: Configure local loop for N2N target
qla2x00_configure_local_loop initializes PLOGI payload for PLOGI ELS using
Get Parameters mailbox command.

In the case when the driver is running in target mode, the topology is N2N
and the target port has higher WWPN, LOCAL_LOOP_UPDATE bit is cleared too
early and PLOGI payload is not initialized by the Get Parameters
command. That causes a failure of ELS IOCB carrying the PLOGI with 0x15 aka
Data Underrun error.

LOCAL_LOOP_UPDATE has to be set to initialize PLOGI payload.

Fixes: 48acad0990 ("scsi: qla2xxx: Fix N2N link re-connect")
Link: https://lore.kernel.org/r/20191125165702.1013-10-r.bolshakov@yadro.com
Acked-by: Quinn Tran <qutran@marvell.com>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-12-09 18:29:23 -05:00
..
Kconfig
Makefile
qla_attr.c scsi: qla2xxx: Correctly retrieve and interpret active flash region 2019-12-09 18:03:07 -05:00
qla_bsg.c scsi: qla2xxx: Correctly retrieve and interpret active flash region 2019-12-09 18:03:07 -05:00
qla_bsg.h
qla_dbg.c scsi: qla2xxx: Declare the fourth ql_dump_buffer() argument const 2019-08-12 21:34:05 -04:00
qla_dbg.h
qla_def.h scsi: qla2xxx: Use explicit LOGO in target mode 2019-12-09 18:27:49 -05:00
qla_devtbl.h
qla_dfs.c scsi: qla2xxx: Reduce the number of casts in GID list code 2019-08-12 21:34:05 -04:00
qla_dsd.h scsi: qla2xxx: Include the <asm/unaligned.h> header file from qla_dsd.h 2019-08-12 21:34:04 -04:00
qla_fw.h scsi: qla2xxx: Added support for MPI and PEP regions for ISP28XX 2019-12-09 18:03:07 -05:00
qla_gbl.h scsi: qla2xxx: Fix device connect issues in P2P configuration 2019-11-08 21:15:42 -05:00
qla_gs.c scsi: qla2xxx: unregister ports after GPN_FT failure 2019-11-26 21:33:56 -05:00
qla_init.c scsi: qla2xxx: Configure local loop for N2N target 2019-12-09 18:29:23 -05:00
qla_inline.h scsi: qla2xxx: don't use zero for FC4_PRIORITY_NVME 2019-11-08 21:23:23 -05:00
qla_iocb.c scsi: qla2xxx: Fix PLOGI payload and ELS IOCB dump length 2019-12-09 18:29:18 -05:00
qla_isr.c scsi: qla2xxx: Don't call qlt_async_event twice 2019-12-09 18:29:14 -05:00
qla_mbx.c SCSI misc on 20191130 2019-12-02 13:37:02 -08:00
qla_mid.c SCSI misc on 20191130 2019-12-02 13:37:02 -08:00
qla_mr.c scsi: qla2xxx: Complain if sp->done() is not called from the completion path 2019-08-12 21:34:09 -04:00
qla_mr.h
qla_nvme.c scsi: qla2xxx: Fix double scsi_done for abort path 2019-11-08 21:15:42 -05:00
qla_nvme.h scsi: qla2xxx: Modify NVMe include directives 2019-08-12 21:34:08 -04:00
qla_nx.c scsi: qla2xxx: Fix driver reload for ISP82xx 2019-09-07 15:38:55 -04:00
qla_nx.h scsi: qla2xxx: Improve Linux kernel coding style conformance 2019-08-12 21:34:04 -04:00
qla_nx2.c scsi: qla2xxx: Suppress a Coveritiy complaint about integer overflow 2019-08-12 21:34:07 -04:00
qla_nx2.h
qla_os.c SCSI misc on 20191130 2019-12-02 13:37:02 -08:00
qla_settings.h
qla_sup.c scsi: qla2xxx: Fix incorrect SFUB length used for Secure Flash Update MB Cmd 2019-12-09 18:03:07 -05:00
qla_target.c scsi: qla2xxx: Drop superfluous INIT_WORK of del_work 2019-12-09 18:29:01 -05:00
qla_target.h scsi: qla2xxx: Introduce the be_id_t and le_id_t data types for FC src/dst IDs 2019-08-12 21:34:07 -04:00
qla_tmpl.c scsi: qla2xxx: Capture FW dump on MPI heartbeat stop event 2019-10-09 22:26:35 -04:00
qla_tmpl.h
qla_version.h scsi: qla2xxx: Update driver version to 10.01.00.21-k 2019-11-08 21:15:42 -05:00
tcm_qla2xxx.c scsi: qla2xxx: Use explicit LOGO in target mode 2019-12-09 18:27:49 -05:00
tcm_qla2xxx.h