public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* iSCSI Expected Data Transfer Length for T10-PI
@ 2014-05-25 15:30 Sagi Grimberg
  2014-05-25 19:39 ` Julian Satran
  2014-05-27 11:58 ` Black, David
  0 siblings, 2 replies; 5+ messages in thread
From: Sagi Grimberg @ 2014-05-25 15:30 UTC (permalink / raw)
  To: martin.petersen@oracle.com, Mike Christie, Nicholas A. Bellinger
  Cc: linux-scsi, target-devel, Oren Duer, james.smart, Or Gerlitz, cbm,
	julians, meth, david.black

Hey All,

Recently, iSER end-to-end T10-PI support maid it mainline.
I am wandering about the impact T10-PI should or shouldn't have on iSCSI 
header
field "Expected Data Transfer Length".

RFC-7143 states:
"the Expected Data Transfer Length field contains the number of bytes of 
data involved in this SCSI operation."
Since this field relates to *data bytes* I kept T10-PI implicit wrt this 
field. The iSCSI target calculates the
total transfer length (data + protection) from the cdb transfer length 
field and protect bits.

In FC, the fc_dl field was updated to relate to the total number of 
transfer bytes and includes
data and protection bytes. virtio_scsi was added with a header PI 
section (virtio_scsi_cmd_req_pi).

So my question is, should this field be updated to explicitly include 
T10-PI bytes like the FC equivalent fc_dl?
Or should T10-PI bytes be implicit?

I want to pin down this one to avoid a situation where the standard is 
open for interpretations.

Thanks,
Sagi.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-27 17:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-25 15:30 iSCSI Expected Data Transfer Length for T10-PI Sagi Grimberg
2014-05-25 19:39 ` Julian Satran
2014-05-25 21:04   ` Sagi Grimberg
2014-05-27 11:58 ` Black, David
2014-05-27 17:12   ` Sagi Grimberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox