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:
Peter Lieven
2015-03-27 13:16:42 +01:00
parent b9dc3749c9
commit 7fd58eca21

View File

@@ -324,6 +324,7 @@ int iscsi_process_target_nop_in(struct iscsi_context *iscsi,
ttt = scsi_get_uint32(&in->hdr[20]);
iscsi_adjust_statsn(iscsi, in);
iscsi_adjust_maxexpcmdsn(iscsi, in);
/* if the server does not want a response */
if (ttt == 0xffffffff) {