mirror of https://github.com/acidanthera/audk.git
Removes irrelevant parameter during negotiation to avoid login fail.
Signed-off-by: Ye Ting<ting.ye@intel.com> Reviewed by: Ouyang, Qian <qian.ouyang@intel.com> Reviewed by: Tian, Feng<feng.tian@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13193 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
bef3fd0c68
commit
75acfab6c3
|
@ -1291,7 +1291,7 @@ ON_EXIT:
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check and get the result of the prameter negotiation.
|
Check and get the result of the parameter negotiation.
|
||||||
|
|
||||||
@param[in, out] Conn The connection in iSCSI login.
|
@param[in, out] Conn The connection in iSCSI login.
|
||||||
|
|
||||||
|
@ -1539,6 +1539,12 @@ IScsiCheckOpParams (
|
||||||
IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_DATA_PDU_IN_ORDER);
|
IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_DATA_PDU_IN_ORDER);
|
||||||
IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_DATA_SEQUENCE_IN_ORDER);
|
IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_DATA_SEQUENCE_IN_ORDER);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Remove irrelevant parameter, if any.
|
||||||
|
//
|
||||||
|
if (Session->InitialR2T && !Session->ImmediateData) {
|
||||||
|
IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_FIRST_BURST_LENGTH);
|
||||||
|
}
|
||||||
|
|
||||||
if (IsListEmpty (KeyValueList)) {
|
if (IsListEmpty (KeyValueList)) {
|
||||||
//
|
//
|
||||||
|
@ -1558,7 +1564,7 @@ ON_ERROR:
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Fill the oprational parameters.
|
Fill the operational parameters.
|
||||||
|
|
||||||
@param[in] Conn The connection in iSCSI login.
|
@param[in] Conn The connection in iSCSI login.
|
||||||
@param[in, out] Pdu The iSCSI login request PDU to fill the parameters.
|
@param[in, out] Pdu The iSCSI login request PDU to fill the parameters.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
The header file of iSCSI Protocol that defines many specific data structures.
|
The header file of iSCSI Protocol that defines many specific data structures.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -866,7 +866,7 @@ IScsiReceivePdu (
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Check and get the result of the prameter negotiation.
|
Check and get the result of the parameter negotiation.
|
||||||
|
|
||||||
@param[in, out] Conn The connection in iSCSI login.
|
@param[in, out] Conn The connection in iSCSI login.
|
||||||
|
|
||||||
|
@ -881,7 +881,7 @@ IScsiCheckOpParams (
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Fill the oprational prameters.
|
Fill the operational parameters.
|
||||||
|
|
||||||
@param[in] Conn The connection in iSCSI login.
|
@param[in] Conn The connection in iSCSI login.
|
||||||
@param[in, out] Pdu The iSCSI login request PDU to fill the parameters.
|
@param[in, out] Pdu The iSCSI login request PDU to fill the parameters.
|
||||||
|
|
Loading…
Reference in New Issue