mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Exclude reserved iSCSI Initiator Task Tag.
RFC 7143 (11.2.1.8): An ITT value of 0xffffffff is reserved and MUST NOT be assigned for a task by the initiator. The only instance in which it may be seen on the wire is in a target-initiated NOP-In PDU (Section 11.19) and in the initiator response to that PDU, if necessary. MFC after: 1 month
This commit is contained in:
parent
b31dae0caa
commit
9bee9a98ff
1 changed files with 5 additions and 0 deletions
|
|
@ -2194,6 +2194,8 @@ iscsi_action_abort(struct iscsi_session *is, union ccb *ccb)
|
|||
}
|
||||
|
||||
initiator_task_tag = is->is_initiator_task_tag++;
|
||||
if (initiator_task_tag == 0xffffffff)
|
||||
initiator_task_tag = is->is_initiator_task_tag++;
|
||||
|
||||
io = iscsi_outstanding_add(is, request, NULL, &initiator_task_tag);
|
||||
if (io == NULL) {
|
||||
|
|
@ -2254,6 +2256,9 @@ iscsi_action_scsiio(struct iscsi_session *is, union ccb *ccb)
|
|||
}
|
||||
|
||||
initiator_task_tag = is->is_initiator_task_tag++;
|
||||
if (initiator_task_tag == 0xffffffff)
|
||||
initiator_task_tag = is->is_initiator_task_tag++;
|
||||
|
||||
io = iscsi_outstanding_add(is, request, ccb, &initiator_task_tag);
|
||||
if (io == NULL) {
|
||||
icl_pdu_free(request);
|
||||
|
|
|
|||
Loading…
Reference in a new issue