tcm_qla2xxx.rst 1019 B

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