2020-03-02 01:16:12 -07:00
|
|
|
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
|
|
|
========================
|
|
|
|
tcm_qla2xxx Driver Notes
|
|
|
|
========================
|
|
|
|
|
2016-05-10 01:23:17 -07:00
|
|
|
tcm_qla2xxx jam_host attribute
|
|
|
|
------------------------------
|
2023-01-29 16:10:51 -07:00
|
|
|
There is now a new module endpoint attribute called jam_host
|
2020-03-02 01:16:12 -07:00
|
|
|
attribute::
|
|
|
|
|
|
|
|
jam_host: boolean=0/1
|
|
|
|
|
2016-05-10 01:23:17 -07:00
|
|
|
This attribute and accompanying code is only included if the
|
|
|
|
Kconfig parameter TCM_QLA2XXX_DEBUG is set to Y
|
2020-03-02 01:16:12 -07:00
|
|
|
|
2016-05-10 01:23:17 -07:00
|
|
|
By default this jammer code and functionality is disabled
|
|
|
|
|
|
|
|
Use this attribute to control the discarding of SCSI commands to a
|
|
|
|
selected host.
|
2020-03-02 01:16:12 -07:00
|
|
|
|
2016-05-10 01:23:17 -07:00
|
|
|
This may be useful for testing error handling and simulating slow drain
|
|
|
|
and other fabric issues.
|
|
|
|
|
|
|
|
Setting a boolean of 1 for the jam_host attribute for a particular host
|
2020-03-02 01:16:12 -07:00
|
|
|
will discard the commands for that host.
|
|
|
|
|
2016-05-10 01:23:17 -07:00
|
|
|
Reset back to 0 to stop the jamming.
|
|
|
|
|
2020-03-02 01:16:12 -07:00
|
|
|
Enable host 4 to be jammed::
|
|
|
|
|
|
|
|
echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:24:ff:27:8f:ae/tpgt_1/attrib/jam_host
|
|
|
|
|
|
|
|
Disable jamming on host 4::
|
2016-05-10 01:23:17 -07:00
|
|
|
|
2020-03-02 01:16:12 -07:00
|
|
|
echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:24:ff:27:8f:ae/tpgt_1/attrib/jam_host
|