Skip to content

Commit

Permalink
qla2xxx: Enhancements to enable NPIV support for QLOGIC ISPs with TCM…
Browse files Browse the repository at this point in the history
…/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>
  • Loading branch information
Saurav Kashyap authored and Nicholas Bellinger committed Jan 19, 2014
1 parent 2930d44 commit 0e8cd71
Show file tree
Hide file tree
Showing 5 changed files with 153 additions and 125 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/qla2xxx/qla_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1994,6 +1994,8 @@ qla24xx_vport_delete(struct fc_vport *fc_vport)

vha->flags.delete_progress = 1;

qlt_remove_target(ha, vha);

fc_remove_host(vha->host);

scsi_remove_host(vha->host);
Expand Down
12 changes: 8 additions & 4 deletions drivers/scsi/qla2xxx/qla_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -2750,6 +2750,13 @@ struct qlfc_fw {
uint32_t len;
};

struct scsi_qlt_host {
void *target_lport_ptr;
struct mutex tgt_mutex;
struct mutex tgt_host_action_mutex;
struct qla_tgt *qla_tgt;
};

struct qlt_hw_data {
/* Protected by hw lock */
uint32_t enable_class_2:1;
Expand All @@ -2765,15 +2772,11 @@ struct qlt_hw_data {
uint32_t __iomem *atio_q_in;
uint32_t __iomem *atio_q_out;

void *target_lport_ptr;
struct qla_tgt_func_tmpl *tgt_ops;
struct qla_tgt *qla_tgt;
struct qla_tgt_cmd *cmds[DEFAULT_OUTSTANDING_COMMANDS];
uint16_t current_handle;

struct qla_tgt_vp_map *tgt_vp_map;
struct mutex tgt_mutex;
struct mutex tgt_host_action_mutex;

int saved_set;
uint16_t saved_exchange_count;
Expand Down Expand Up @@ -3441,6 +3444,7 @@ typedef struct scsi_qla_host {
#define VP_ERR_FAB_LOGOUT 4
#define VP_ERR_ADAP_NORESOURCES 5
struct qla_hw_data *hw;
struct scsi_qlt_host vha_tgt;
struct req_que *req;
int fw_heartbeat_counter;
int seconds_since_last_heartbeat;
Expand Down
Loading

0 comments on commit 0e8cd71

Please sign in to comment.