Return-Path: <owner-ips@ece.cmu.edu>
X-Sieve: cmu-sieve 2.0
Return-Path: <owner-ips@ece.cmu.edu>
Received: (from majordom@localhost)
	by ece.cmu.edu (8.11.0/8.10.2) id h38Gafn12871
	for ips-outgoing; Tue, 8 Apr 2003 12:36:41 -0400 (EDT)
X-Authentication-Warning: ece.cmu.edu: majordom set sender to owner-ips@ece.cmu.edu using -f
Received: from lion.ninthwonder.com (lion.ninthwonder.com [151.199.66.147])
	by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h38Gaa312867
	for <ips@ece.cmu.edu>; Tue, 8 Apr 2003 12:36:37 -0400 (EDT)
Received: by lion.ninthwonder.com (Postfix, from userid 1021)
	id E0AAA30706; Tue,  8 Apr 2003 12:36:21 -0400 (EDT)
Date: Tue, 8 Apr 2003 15:36:18 +0000 (UTC)
From: wrstuden@wasabisystems.com
X-X-Sender: wrstuden@neverwinter.home-net.icnt.net
To: AClarke@attotech.com
Cc: ips@ece.cmu.edu
Subject: Re: iSCSI SCSI command F bit questions
In-Reply-To: <OF2E5DEAA8.4A095563-ON85256D02.004BC56E@attotech.com>
Message-ID: <Pine.NEB.4.53.0304081531230.631@neverwinter.home-net.icnt.net>
References: <OF2E5DEAA8.4A095563-ON85256D02.004BC56E@attotech.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ips@ece.cmu.edu
Precedence: bulk

On Tue, 8 Apr 2003 AClarke@attotech.com wrote:

> I have a few questions about iSCSI data transfer.
>
> In section 10.3.1 of the spec describing the F bit, why is the word "may"
> used?  I think that when Expected Data Transfer Length is larger than
> DataSegmentLength the target "MUST" solicit the additional data.  Is there
> a situation when the target should not send an R2T for the rest of the
> data?

Note, that's "may", not "MAY". It's a polite phrasing. It means it's up to
the target to get the rest of the data.

> Is it at the initiator's discretion to set this bit, even if InitialR2T=No,
> ImmediateData=Yes, and DataSegmentLength is less than FirstBurstLength?

Kinda. In the case you describe, it is at the initiator's discression what
kind of unsolicited data transmission it wants to do. But given a decision
(no unsolicited, unsolicited burst, immediate data, immediate data
followed by unsolicited burst), the initiator must stick with that
decision.

>      10.3.1  Flags and Task Attributes (byte 1)
>
>           The flags for a SCSI Command are:
>
>           bit 0   (F) is set to 1 when no unsolicited SCSI Data-Out PDUs
>                 follow this PDU.  When F=1 for a write and if Expected Data
>                 Transfer Length is larger than the DataSegmentLength, the
>                 target may solicit additional data through R2T.

Take care,

Bill
