]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tcm_qla2xxx: Add >= 24xx series fabric module for target-core
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 8 Mar 2012 22:27:50 +0000 (14:27 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 15 Apr 2012 00:42:41 +0000 (17:42 -0700)
commit3df279098d9e2f9e6da269cf8c01a20b49e798ef
tree9f94b16206cd0a1033f6edb40a026c25af7717c5
parentcecd00f251b6f71f3a8d6a1d33dcf8f24969cf09
tcm_qla2xxx: Add >= 24xx series fabric module for target-core

This patch adds support for tcm_qla2xxx fabric module for target-core using
the new qla_target.c LLD logic.  This includes support for explict NodeACLs
via configfs using tcm_qla2xxx_setup_nacl_from_rport() from libfc
struct fc_host->rports, and demo-mode support for virtual LUN=0 access.

This patch also adds support for using tcm_qla2xxx_lport->lport_fcport_map
and ->lport_loopid_map to track struct se_node_acl pointers for
individual 24-bit Port ID and 16-bit Loop ID values for qla_target_template
->find_sess_by_s_id() and ->find_sess_by_loop_id() used in a number of
locations into the primary I/O dispatch logic in qla_target.c LLD code.

The main piece for FC Nexus setup is in tcm_qla2xxx_check_initiator_node_acl(),
which calls tcm_qla2xxx_set_sess_by_[s_id,loop_id]() to setup our
lport->lport_fcport_map and lport_loopid_map pointers respectively, and
register the new nexus with TCM via __transport_register_session().

(nab: Add qla_tgt_mgmt_cmd usage with TARGET_SCF_ACK_KREF during TMRs +
      change tcm_qla2xxx_nacl->nport_id to u32 (DanC))
(DanC: tcm_qla2xxx: checking for NULL instead of IS_ERR())
(Roland: Fix up v3.5 breakage for removal of transport_do_task_sg_chain)

Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
Cc: Arun Easi <arun.easi@qlogic.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: James Bottomley <JBottomley@Parallels.com>
Cc: Roland Dreier <roland@purestorage.com>
Cc: Joern Engel <joern@logfs.org>
Cc: Madhuranath Iyengar <mni@risingtidesystems.com>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
drivers/scsi/qla2xxx/Kconfig
drivers/scsi/qla2xxx/Makefile
drivers/scsi/qla2xxx/tcm_qla2xxx.c [new file with mode: 0644]
drivers/scsi/qla2xxx/tcm_qla2xxx.h [new file with mode: 0644]