Skip to content

Commit 0e8cd71

Browse files
Saurav KashyapNicholas Bellinger
authored andcommitted
qla2xxx: Enhancements to enable NPIV support for QLOGIC ISPs with TCM/LIO.
Signed-off-by: Sawan Chandak <sawan.chandak@qlogic.com> Signed-off-by: Quinn Tran <quinn.tran@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent 2930d44 commit 0e8cd71

File tree

5 files changed

+153
-125
lines changed

5 files changed

+153
-125
lines changed

drivers/scsi/qla2xxx/qla_attr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,6 +1994,8 @@ qla24xx_vport_delete(struct fc_vport *fc_vport)
19941994

19951995
vha->flags.delete_progress = 1;
19961996

1997+
qlt_remove_target(ha, vha);
1998+
19971999
fc_remove_host(vha->host);
19982000

19992001
scsi_remove_host(vha->host);

drivers/scsi/qla2xxx/qla_def.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,6 +2750,13 @@ struct qlfc_fw {
27502750
uint32_t len;
27512751
};
27522752

2753+
struct scsi_qlt_host {
2754+
void *target_lport_ptr;
2755+
struct mutex tgt_mutex;
2756+
struct mutex tgt_host_action_mutex;
2757+
struct qla_tgt *qla_tgt;
2758+
};
2759+
27532760
struct qlt_hw_data {
27542761
/* Protected by hw lock */
27552762
uint32_t enable_class_2:1;
@@ -2765,15 +2772,11 @@ struct qlt_hw_data {
27652772
uint32_t __iomem *atio_q_in;
27662773
uint32_t __iomem *atio_q_out;
27672774

2768-
void *target_lport_ptr;
27692775
struct qla_tgt_func_tmpl *tgt_ops;
2770-
struct qla_tgt *qla_tgt;
27712776
struct qla_tgt_cmd *cmds[DEFAULT_OUTSTANDING_COMMANDS];
27722777
uint16_t current_handle;
27732778

27742779
struct qla_tgt_vp_map *tgt_vp_map;
2775-
struct mutex tgt_mutex;
2776-
struct mutex tgt_host_action_mutex;
27772780

27782781
int saved_set;
27792782
uint16_t saved_exchange_count;
@@ -3441,6 +3444,7 @@ typedef struct scsi_qla_host {
34413444
#define VP_ERR_FAB_LOGOUT 4
34423445
#define VP_ERR_ADAP_NORESOURCES 5
34433446
struct qla_hw_data *hw;
3447+
struct scsi_qlt_host vha_tgt;
34443448
struct req_que *req;
34453449
int fw_heartbeat_counter;
34463450
int seconds_since_last_heartbeat;

0 commit comments

Comments
 (0)