WSL2-Linux-Kernel/drivers/scsi/bfa
Krishna Gudipati 5b7db7af52 [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts.
This patch re-implements LUN Masking feature using SCSI Slave Callouts.  With
the new design in the slave_alloc entry point; for each new LUN discovered we
check with our internal LUN Masking config whether to expose or to mask this
particular LUN. We return -ENXIO (No such device or address) from slave_alloc
for the LUNs we don't want to be exposed.  We also notify the SCSI mid-layer
to do a sequential LUN scan rather than REPORT_LUNS based scan if LUN masking
is enabled on our HBA port, since a -ENXIO from any LUN in REPORT_LUNS based
scan translates to a scan abort.  This patch also handles the dynamic lun
masking config change from enable to disable or vice-versa by resetting
sdev_bflags of LUN 0 appropriately.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-01-10 17:01:24 -06:00
..
Makefile [SCSI] bfa: Add BSG interface to support ELS, CT and vendor commands. 2011-06-29 15:59:53 -05:00
bfa.h [SCSI] bfa: Introduced initiator based lun masking feature. 2011-07-27 14:55:03 +04:00
bfa_core.c [SCSI] bfa: Add support to store driver configuration in flash. 2011-07-27 14:54:03 +04:00
bfa_cs.h [SCSI] bfa: remove inactive functions 2010-12-31 09:38:53 -06:00
bfa_defs.h [SCSI] bfa: fix endian and bit field check bug 2011-12-15 10:55:01 +04:00
bfa_defs_fcs.h [SCSI] bfa: Extend BSG interface. 2011-06-29 17:16:54 -05:00
bfa_defs_svc.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_fc.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_fcbuild.c [SCSI] bfa: FCS bug fixes. 2011-06-29 17:12:11 -05:00
bfa_fcbuild.h [SCSI] bfa: FCS bug fixes. 2011-06-29 17:12:11 -05:00
bfa_fcpim.c [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_fcpim.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfa_fcs.c [SCSI] bfa: Add FC-transport based Asynchronous Event Notification support. 2011-07-27 14:41:24 +04:00
bfa_fcs.h [SCSI] bfa: Add FC-transport based Asynchronous Event Notification support. 2011-07-27 14:41:24 +04:00
bfa_fcs_fcpim.c [SCSI] bfa: Add FC-transport based Asynchronous Event Notification support. 2011-07-27 14:41:24 +04:00
bfa_fcs_lport.c [SCSI] bfa: Add FC-transport based Asynchronous Event Notification support. 2011-07-27 14:41:24 +04:00
bfa_fcs_rport.c [SCSI] bfa: Add FC-transport based Asynchronous Event Notification support. 2011-07-27 14:41:24 +04:00
bfa_hw_cb.c [SCSI] bfa: Update RME interrupt handling. 2011-07-27 14:44:48 +04:00
bfa_hw_ct.c [SCSI] bfa: Update RME interrupt handling. 2011-07-27 14:44:48 +04:00
bfa_ioc.c [SCSI] bfa: fix endian and bit field check bug 2011-12-15 10:55:01 +04:00
bfa_ioc.h [SCSI] bfa: Add support to store driver configuration in flash. 2011-07-27 14:54:03 +04:00
bfa_ioc_cb.c [SCSI] bfa: IOC bug fixes. 2011-06-29 16:57:52 -05:00
bfa_ioc_ct.c [SCSI] bfa: Brocade-1860 Fabric Adapter vHBA support. 2011-06-29 17:02:28 -05:00
bfa_modules.h [SCSI] bfa: Add support to store driver configuration in flash. 2011-07-27 14:54:03 +04:00
bfa_plog.h [SCSI] bfa: clean up one line functions 2010-12-21 12:32:43 -06:00
bfa_port.c [SCSI] bfa: Added support to query PHY. 2011-06-29 17:27:20 -05:00
bfa_port.h [SCSI] bfa: Added support for CEE info and stats query. 2011-06-29 17:21:23 -05:00
bfa_svc.c [SCSI] bfa: Introduced initiator based lun masking feature. 2011-07-27 14:55:03 +04:00
bfa_svc.h [SCSI] bfa: Revert back the current LUN Masking Implementation. 2012-01-10 17:01:24 -06:00
bfad.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_attr.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_bsg.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_bsg.h [SCSI] bfa: Added support to configure lunmasking 2011-07-27 14:57:31 +04:00
bfad_debugfs.c SCSI updates for post 3.2 merge window 2012-01-10 10:36:08 -08:00
bfad_drv.h [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_im.c [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfad_im.h [SCSI] bfa: Implement LUN Masking feature using the SCSI Slave Callouts. 2012-01-10 17:01:24 -06:00
bfi.h [SCSI] bfa: Add FC-transport based Asynchronous Event Notification support. 2011-07-27 14:41:24 +04:00
bfi_ms.h [SCSI] bfa: DMA memory allocation enhancement. 2011-06-29 17:11:09 -05:00
bfi_reg.h [SCSI] bfa: Brocade-1860 Fabric Adapter PLL init fixes. 2011-06-29 16:59:59 -05:00