pdu: a target NOP-In may indiciate a changes MaxCmdSN or ExpCmdSN
RFC3720 10.19. NOP-In NOP-In is either sent by a target as a response to a NOP-Out, as a "ping" to an initiator, or as a means to carry a changed ExpCmdSN and/or MaxCmdSN if another PDU will not be available for a long time (as determined by the target). ... Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -324,6 +324,7 @@ int iscsi_process_target_nop_in(struct iscsi_context *iscsi,
|
|||||||
ttt = scsi_get_uint32(&in->hdr[20]);
|
ttt = scsi_get_uint32(&in->hdr[20]);
|
||||||
|
|
||||||
iscsi_adjust_statsn(iscsi, in);
|
iscsi_adjust_statsn(iscsi, in);
|
||||||
|
iscsi_adjust_maxexpcmdsn(iscsi, in);
|
||||||
|
|
||||||
/* if the server does not want a response */
|
/* if the server does not want a response */
|
||||||
if (ttt == 0xffffffff) {
|
if (ttt == 0xffffffff) {
|
||||||
|
|||||||
Reference in New Issue
Block a user