|
David Bond |
6f4a9f |
From: David Bond <dbond@suse.com>
|
|
David Bond |
6f4a9f |
Date: Tue, 31 May 2022 08:53:10 -0600
|
|
David Bond |
6f4a9f |
Subject: revert scsi: qla2xxx: Changes to support FCP2 Target
|
|
David Bond |
6f4a9f |
Patch-mainline: Never, revert of mainline commit causing customer issue for test package
|
|
David Bond |
6f4a9f |
References: bsc#1198438
|
|
David Bond |
6f4a9f |
|
|
David Bond |
6f4a9f |
Revert Adding changes to support FCP2 Target.
|
|
David Bond |
6f4a9f |
---
|
|
David Bond |
6f4a9f |
|
|
David Bond |
6f4a9f |
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
|
|
David Bond |
6f4a9f |
index 88c5a8ec0e7c..4b27eebbc1b3 100644
|
|
David Bond |
6f4a9f |
--- a/drivers/scsi/qla2xxx/qla_init.c
|
|
David Bond |
6f4a9f |
+++ b/drivers/scsi/qla2xxx/qla_init.c
|
|
David Bond |
6f4a9f |
@@ -1821,13 +1821,6 @@ void qla2x00_handle_rscn(scsi_qla_host_t *vha, struct event_arg *ea)
|
|
David Bond |
6f4a9f |
case RSCN_PORT_ADDR:
|
|
David Bond |
6f4a9f |
fcport = qla2x00_find_fcport_by_nportid(vha, &ea->id, 1);
|
|
David Bond |
6f4a9f |
if (fcport) {
|
|
David Bond |
6f4a9f |
- if (fcport->flags & FCF_FCP2_DEVICE) {
|
|
David Bond |
6f4a9f |
- ql_dbg(ql_dbg_disc, vha, 0x2115,
|
|
David Bond |
6f4a9f |
- "Delaying session delete for FCP2 portid=%06x %8phC ",
|
|
David Bond |
6f4a9f |
- fcport->d_id.b24, fcport->port_name);
|
|
David Bond |
6f4a9f |
- return;
|
|
David Bond |
6f4a9f |
- }
|
|
David Bond |
6f4a9f |
-
|
|
David Bond |
6f4a9f |
if (vha->hw->flags.edif_enabled && DBELL_ACTIVE(vha)) {
|
|
David Bond |
6f4a9f |
/*
|
|
David Bond |
6f4a9f |
* On ipsec start by remote port, Target port
|
|
David Bond |
6f4a9f |
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
|
|
David Bond |
6f4a9f |
index 850fc95f7033..9285db77b95d 100644
|
|
David Bond |
6f4a9f |
--- a/drivers/scsi/qla2xxx/qla_os.c
|
|
David Bond |
6f4a9f |
+++ b/drivers/scsi/qla2xxx/qla_os.c
|
|
David Bond |
6f4a9f |
@@ -4062,16 +4062,6 @@ qla2x00_mark_all_devices_lost(scsi_qla_host_t *vha)
|
|
David Bond |
6f4a9f |
"Mark all dev lost\n");
|
|
David Bond |
6f4a9f |
|
|
David Bond |
6f4a9f |
list_for_each_entry(fcport, &vha->vp_fcports, list) {
|
|
David Bond |
6f4a9f |
- if (fcport->loop_id != FC_NO_LOOP_ID &&
|
|
David Bond |
6f4a9f |
- (fcport->flags & FCF_FCP2_DEVICE) &&
|
|
David Bond |
6f4a9f |
- fcport->port_type == FCT_TARGET &&
|
|
David Bond |
6f4a9f |
- !qla2x00_reset_active(vha)) {
|
|
David Bond |
6f4a9f |
- ql_dbg(ql_dbg_disc, vha, 0x211a,
|
|
David Bond |
6f4a9f |
- "Delaying session delete for FCP2 flags 0x%x port_type = 0x%x port_id=%06x %phC",
|
|
David Bond |
6f4a9f |
- fcport->flags, fcport->port_type,
|
|
David Bond |
6f4a9f |
- fcport->d_id.b24, fcport->port_name);
|
|
David Bond |
6f4a9f |
- continue;
|
|
David Bond |
6f4a9f |
- }
|
|
David Bond |
6f4a9f |
fcport->scan_state = 0;
|
|
David Bond |
6f4a9f |
qlt_schedule_sess_for_deletion(fcport);
|
|
David Bond |
6f4a9f |
}
|