mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix incorrect constants of target tag action.
ocs_scsi_recv_cmd() receives the flags after ocs_get_flags_fcp_cmd(), which translates them from FCP_TASK_ATTR_* to OCS_SCSI_CMD_*. As result non-SIMPLE requests turned into HEAD or ORDERED depending on direction. MFC after: 2 weeks
This commit is contained in:
parent
50f7cdf21c
commit
eb5a54f880
1 changed files with 2 additions and 2 deletions
|
|
@ -576,9 +576,9 @@ int32_t ocs_scsi_recv_cmd(ocs_io_t *io, uint64_t lun, uint8_t *cdb,
|
|||
|
||||
if (flags & OCS_SCSI_CMD_SIMPLE)
|
||||
atio->tag_action = MSG_SIMPLE_Q_TAG;
|
||||
else if (flags & FCP_TASK_ATTR_HEAD_OF_QUEUE)
|
||||
else if (flags & OCS_SCSI_CMD_HEAD_OF_QUEUE)
|
||||
atio->tag_action = MSG_HEAD_OF_Q_TAG;
|
||||
else if (flags & FCP_TASK_ATTR_ORDERED)
|
||||
else if (flags & OCS_SCSI_CMD_ORDERED)
|
||||
atio->tag_action = MSG_ORDERED_Q_TAG;
|
||||
else
|
||||
atio->tag_action = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue