Re: Not getting Response PDU(Check condition) when ImmediateData > FBL.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/23/2014 1:10 AM, Nicholas A. Bellinger wrote:
on-immediate
     data
Hi Nicholas,

Thanks for the explanation.

However, I went back and double checked, what we are doing is little different. We are sending ImmediateData with is larger than FBL, which is < EDTL with F=0. RFC section 10.4.7.2 points that this should return "Unexpected unsolicited data". Please note that the
ImmediateData=Yes in this case.

RFC Section 10.4.7.2
+--------------------------+----------+---------------------------+
| Unexpected unsolicited   |Aborted   | ASC = 0x0c ASCQ = 0x0c    |
| data                     |Command-0B| Write Error               |
+--------------------------+----------+---------------------------+

It looks like it is failing in this part of code.

Linux/drivers/target/iscsi/iscsi_target.c:iscsit_setup_scsi_cmd()

            if (payload_length > conn->sess->sess_ops->FirstBurstLength) {
908                 pr_err("DataSegmentLength: %u is greater than"
909                         " FirstBurstLength: %u, protocol error.\n",
910 payload_length, conn->sess->sess_ops->FirstBurstLength);
911                 return iscsit_add_reject_cmd(cmd,
912 ISCSI_REASON_BOOKMARK_INVALID, buf);
913         }


The other case you are mentioning where FBL < EDTL and non-immediate data (data-out) with F=1. This case should return "Incorrect amount of data". I am quoting this from RFC section 10.4.7.2

RFC Section 10.4.7.2
+--------------------------+----------+---------------------------+
| Incorrect amount of data |Aborted   |  ASC = 0x0c ASCQ = 0x0d   |
|                          |Command-0B| Write Error               |
+--------------------------+----------+---------------------------+

Please let me know if my understanding is correct.


Here is the dmesg output after execution

[root@root bin]# dmesg | tail -1
[23181.747878] DataSegmentLength: 1024 is greater than FirstBurstLength: 512, protocol error.
[root@root bin]#



--
Thanks and regards.
Tejas Vaykole
Development Engineer.
Calsoft Inc.|Ext- 3096

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux