Commit 527d46e0 authored by Quinn Tran's avatar Quinn Tran Committed by Martin K. Petersen
Browse files

scsi: qla2xxx: edif: Use link event to wake up app

Authentication application may be running and in the past tried to probe
driver (app_start) but was unsuccessful. This could be due to the bsg layer
not being ready to service the request. On a successful link up, driver
will use the netlink Link Up event to notify the app to retry the app_start
call.

In another case, app does not poll for new NPIV host. This link up event
would notify app of the presence of a new SCSI host.

Link: https://lore.kernel.org/r/20210908164622.19240-6-njavali@marvell.com


Fixes: 4de067e5 ("scsi: qla2xxx: edif: Add N2N support for EDIF")
Reviewed-by: default avatarHimanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: default avatarQuinn Tran <qutran@marvell.com>
Signed-off-by: default avatarNilesh Javali <njavali@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent e6e22e6c
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -5335,15 +5335,14 @@ qla2x00_configure_loop(scsi_qla_host_t *vha)
			    "LOOP READY.\n");
			ha->flags.fw_init_done = 1;

			if (ha->flags.edif_enabled &&
			    !(vha->e_dbell.db_flags & EDB_ACTIVE) &&
			    N2N_TOPO(vha->hw)) {
			/*
				 * use port online to wake up app to get ready
				 * for authentication
			 * use link up to wake up app to get ready for
			 * authentication.
			 */
				qla2x00_post_aen_work(vha, FCH_EVT_PORT_ONLINE, 0);
			}
			if (ha->flags.edif_enabled &&
			    !(vha->e_dbell.db_flags & EDB_ACTIVE))
				qla2x00_post_aen_work(vha, FCH_EVT_LINKUP,
						      ha->link_data_rate);

			/*
			 * Process any ATIO queue entries that came in