aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ocs_fc/ocs_scsi.c
diff options
context:
space:
mode:
authorRam Kishore Vegesna <ram@FreeBSD.org>2023-12-12 15:22:58 +0000
committerKenneth D. Merry <ken@FreeBSD.org>2023-12-12 15:22:58 +0000
commit70547544ce931357c980be47d937e5b57a2d7f49 (patch)
treefd7b6361826021e3b0e7b6b11dc1291316c05f7d /sys/dev/ocs_fc/ocs_scsi.c
parent793e4aca9e70f2441f0f4e1688d0a727d602ed81 (diff)
downloadsrc-70547544ce931357c980be47d937e5b57a2d7f49.tar.gz
src-70547544ce931357c980be47d937e5b57a2d7f49.zip
Diffstat (limited to 'sys/dev/ocs_fc/ocs_scsi.c')
-rw-r--r--sys/dev/ocs_fc/ocs_scsi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ocs_fc/ocs_scsi.c b/sys/dev/ocs_fc/ocs_scsi.c
index 0e87cc0bed4b..af9fc798b01c 100644
--- a/sys/dev/ocs_fc/ocs_scsi.c
+++ b/sys/dev/ocs_fc/ocs_scsi.c
@@ -413,7 +413,7 @@ ocs_target_io_cb(ocs_hw_io_t *hio, ocs_remote_node_t *rnode, uint32_t length,
}
break;
- case SLI4_FC_WCQE_STATUS_TARGET_WQE_TIMEOUT:
+ case SLI4_FC_WCQE_STATUS_WQE_TIMEOUT:
/* target IO timed out */
scsi_status = OCS_SCSI_STATUS_TIMEDOUT_AND_ABORTED;
break;
@@ -2209,6 +2209,10 @@ ocs_initiator_io_cb(ocs_hw_io_t *hio, ocs_remote_node_t *rnode, uint32_t length,
scsi_status = OCS_SCSI_STATUS_ERROR;
}
break;
+ case SLI4_FC_WCQE_STATUS_WQE_TIMEOUT:
+ /* IO timed out */
+ scsi_status = OCS_SCSI_STATUS_TIMEDOUT_AND_ABORTED;
+ break;
case SLI4_FC_WCQE_STATUS_DI_ERROR:
if (ext_status & 0x01) {
scsi_status = OCS_SCSI_STATUS_DIF_GUARD_ERROR;