qla2xxx: Add async new target notification
Signed-off-by: Quinn Tran <quinn.tran@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
54b9993c8c
commit
f1443eebca
|
@ -6005,13 +6005,13 @@ int qlt_add_target(struct qla_hw_data *ha, struct scsi_qla_host *base_vha)
|
|||
tgt->datasegs_per_cmd = QLA_TGT_DATASEGS_PER_CMD_24XX;
|
||||
tgt->datasegs_per_cont = QLA_TGT_DATASEGS_PER_CONT_24XX;
|
||||
|
||||
if (base_vha->fc_vport)
|
||||
return 0;
|
||||
|
||||
mutex_lock(&qla_tgt_mutex);
|
||||
list_add_tail(&tgt->tgt_list_entry, &qla_tgt_glist);
|
||||
mutex_unlock(&qla_tgt_mutex);
|
||||
|
||||
if (ha->tgt.tgt_ops && ha->tgt.tgt_ops->add_target)
|
||||
ha->tgt.tgt_ops->add_target(base_vha);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -693,6 +693,7 @@ struct qla_tgt_func_tmpl {
|
|||
void (*shutdown_sess)(struct fc_port *);
|
||||
int (*get_dif_tags)(struct qla_tgt_cmd *cmd, uint16_t *pfw_prot_opts);
|
||||
int (*chk_dif_tags)(uint32_t tag);
|
||||
void (*add_target)(struct scsi_qla_host *);
|
||||
};
|
||||
|
||||
int qla2x00_wait_for_hba_online(struct scsi_qla_host *);
|
||||
|
|
Loading…
Reference in New Issue