The data length of a text request must not exceed the iSCSI target MaxRecvDataSegmentLength.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8448 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gikidy 2009-06-03 02:25:48 +00:00
parent 134c1f33ed
commit 20621542f6
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ IScsiCreateConnection (
//
// set the default connection-only parameters
//
Conn->MaxRecvDataSegmentLength = MAX_RECV_DATA_SEG_LEN_IN_FFP;
Conn->MaxRecvDataSegmentLength = DEFAULT_MAX_RECV_DATA_SEG_LEN;
Conn->HeaderDigest = ISCSI_DIGEST_NONE;
Conn->DataDigest = ISCSI_DIGEST_NONE;
@ -1374,7 +1374,7 @@ IScsiFillOpParams (
AsciiSPrint (Value, sizeof (Value), "%a", Session->ImmediateData ? "Yes" : "No");
IScsiAddKeyValuePair (Pdu, ISCSI_KEY_IMMEDIATE_DATA, Value);
AsciiSPrint (Value, sizeof (Value), "%d", Conn->MaxRecvDataSegmentLength);
AsciiSPrint (Value, sizeof (Value), "%d", MAX_RECV_DATA_SEG_LEN_IN_FFP);
IScsiAddKeyValuePair (Pdu, ISCSI_KEY_MAX_RECV_DATA_SEGMENT_LENGTH, Value);
AsciiSPrint (Value, sizeof (Value), "%d", Session->MaxBurstLength);