Commit | Line | Data |
---|---|---|
e92c45d2 MCC |
1 | .. SPDX-License-Identifier: GPL-2.0 |
2 | ||
3 | ======================== | |
4 | tcm_qla2xxx Driver Notes | |
5 | ======================== | |
6 | ||
54a5e73f LO |
7 | tcm_qla2xxx jam_host attribute |
8 | ------------------------------ | |
9 | There is now a new module endpoint atribute called jam_host | |
e92c45d2 MCC |
10 | attribute:: |
11 | ||
12 | jam_host: boolean=0/1 | |
13 | ||
54a5e73f LO |
14 | This attribute and accompanying code is only included if the |
15 | Kconfig parameter TCM_QLA2XXX_DEBUG is set to Y | |
e92c45d2 | 16 | |
54a5e73f LO |
17 | By default this jammer code and functionality is disabled |
18 | ||
19 | Use this attribute to control the discarding of SCSI commands to a | |
20 | selected host. | |
e92c45d2 | 21 | |
54a5e73f LO |
22 | This may be useful for testing error handling and simulating slow drain |
23 | and other fabric issues. | |
24 | ||
25 | Setting a boolean of 1 for the jam_host attribute for a particular host | |
e92c45d2 MCC |
26 | will discard the commands for that host. |
27 | ||
54a5e73f LO |
28 | Reset back to 0 to stop the jamming. |
29 | ||
e92c45d2 MCC |
30 | Enable host 4 to be jammed:: |
31 | ||
32 | echo 1 > /sys/kernel/config/target/qla2xxx/21:00:00:24:ff:27:8f:ae/tpgt_1/attrib/jam_host | |
33 | ||
34 | Disable jamming on host 4:: | |
54a5e73f | 35 | |
e92c45d2 | 36 | echo 0 > /sys/kernel/config/target/qla2xxx/21:00:00:24:ff:27:8f:ae/tpgt_1/attrib/jam_host |