0001 .. SPDX-License-Identifier: GPL-2.0
0002
0003 ========================
0004 tcm_qla2xxx Driver Notes
0005 ========================
0006
0007 tcm_qla2xxx jam_host attribute
0008 ------------------------------
0009 There is now a new module endpoint atribute called jam_host
0010 attribute::
0011
0012 jam_host: boolean=0/1
0013
0014 This attribute and accompanying code is only included if the
0015 Kconfig parameter TCM_QLA2XXX_DEBUG is set to Y
0016
0017 By default this jammer code and functionality is disabled
0018
0019 Use this attribute to control the discarding of SCSI commands to a
0020 selected host.
0021
0022 This may be useful for testing error handling and simulating slow drain
0023 and other fabric issues.
0024
0025 Setting a boolean of 1 for the jam_host attribute for a particular host
0026 will discard the commands for that host.
0027
0028 Reset back to 0 to stop the jamming.
0029
0030 Enable host 4 to be jammed::
0031
0032 echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:24:ff:27:8f:ae/tpgt_1/attrib/jam_host
0033
0034 Disable jamming on host 4::
0035
0036 echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:24:ff:27:8f:ae/tpgt_1/attrib/jam_host