linux-stable/drivers/scsi/qla2xxx
Roland Dreier 9c58b7ddd7 target: Simplify fabric sense data length handling
Every fabric driver has to supply a se_tfo->set_fabric_sense_len()
method, just so iSCSI can return an offset of 2.  However, every fabric
driver is already allocating a sense buffer and passing it into the
target core, either via transport_init_se_cmd() or target_submit_cmd().

So instead of having iSCSI pass the start of its sense buffer into the
core and then later tell the core to skip the first 2 bytes, it seems
easier for iSCSI just to do the offset of 2 when it passes the sense
buffer into the core.  Then we can drop the se_tfo->set_fabric_sense_len()
everywhere, and just add a couple of lines of code to iSCSI to set the
sense data length to the beginning of the buffer right before it sends
it over the network.

(nab: Remove .set_fabric_sense_len usage from tcm_qla2xxx_npiv_ops +
      change transport_get_sense_buffer to follow v3.6-rc6 code w/o
      ->set_fabric_sense_len usage)

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2012-09-17 17:12:58 -07:00
..
Kconfig [SCSI] tcm_qla2xxx: Add >= 24xx series fabric module for target-core 2012-05-22 11:49:20 +01:00
Makefile [SCSI] tcm_qla2xxx: Add >= 24xx series fabric module for target-core 2012-05-22 11:49:20 +01:00
qla_attr.c [SCSI] qla2xxx: Add LLD target-mode infrastructure for >= 24xx series 2012-05-22 11:47:51 +01:00
qla_bsg.c [SCSI] Revert "qla2xxx: During loopdown perform Diagnostic loopback." 2012-05-22 11:47:01 +01:00
qla_bsg.h [SCSI] qla2xxx: Provide method for updating I2C attached VPD. 2011-08-29 00:14:57 -07:00
qla_dbg.c [SCSI] qla2xxx: Add LLD target-mode infrastructure for >= 24xx series 2012-05-22 11:47:51 +01:00
qla_dbg.h [SCSI] qla2xxx: Add LLD target-mode infrastructure for >= 24xx series 2012-05-22 11:47:51 +01:00
qla_def.h [SCSI] qla2xxx: Add LLD target-mode infrastructure for >= 24xx series 2012-05-22 11:47:51 +01:00
qla_devtbl.h [SCSI] qla2xxx: fix Kernel Panic with Qlogic 2472 Card. 2009-02-10 11:15:18 -05:00
qla_dfs.c [SCSI] qla2xxx: Enhancements to support ISP83xx. 2012-02-19 08:11:11 -06:00
qla_fw.h [SCSI] qla2xxx: Enhancements to support ISP83xx. 2012-02-19 08:11:11 -06:00
qla_gbl.h [SCSI] qla2xxx: Add LLD target-mode infrastructure for >= 24xx series 2012-05-22 11:47:51 +01:00
qla_gs.c [SCSI] qla2xxx: Add LLD target-mode infrastructure for >= 24xx series 2012-05-22 11:47:51 +01:00
qla_init.c [SCSI] qla2xxx: remove unnecessary reads of PCI_CAP_ID_EXP 2012-07-20 08:59:02 +01:00
qla_inline.h [SCSI] qla2xxx: Add ha->max_fibre_devices to keep track of the maximum number of targets. 2012-02-19 08:33:13 -06:00
qla_iocb.c [SCSI] qla2xxx: don't free pool that wasn't allocated 2012-05-22 11:52:20 +01:00
qla_isr.c [SCSI] qla2xxx: Add LLD target-mode infrastructure for >= 24xx series 2012-05-22 11:47:51 +01:00
qla_mbx.c [SCSI] qla2xxx: Add LLD target-mode infrastructure for >= 24xx series 2012-05-22 11:47:51 +01:00
qla_mid.c [SCSI] qla2xxx: Add LLD target-mode infrastructure for >= 24xx series 2012-05-22 11:47:51 +01:00
qla_nx.c [SCSI] qla2xxx: remove unnecessary reads of PCI_CAP_ID_EXP 2012-07-20 08:59:02 +01:00
qla_nx.h [SCSI] qla2xxx: Corrections to log messages. 2012-05-22 11:39:52 +01:00
qla_os.c [SCSI] qla2xxx: remove unnecessary reads of PCI_CAP_ID_EXP 2012-07-20 08:59:02 +01:00
qla_settings.h [SCSI] qla2xxx: Update copyright banner. 2011-05-01 10:07:23 -05:00
qla_sup.c [SCSI] qla2xxx: Block flash access from application when device is initialized for ISP82xx. 2012-05-10 08:10:58 +01:00
qla_target.c qla2xxx: Remove racy, now-redundant check of sess_tearing_down 2012-07-16 17:35:27 -07:00
qla_target.h qla2xxx: Get rid of redundant qla_tgt_sess.tearing_down 2012-07-16 17:35:25 -07:00
qla_version.h [SCSI] qla2xxx: Update version number to 8.04.00.03-k. 2012-05-10 08:19:10 +01:00
tcm_qla2xxx.c target: Simplify fabric sense data length handling 2012-09-17 17:12:58 -07:00
tcm_qla2xxx.h [SCSI] tcm_qla2xxx: Add >= 24xx series fabric module for target-core 2012-05-22 11:49:20 +01:00