X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=NetworkPkg%2FIScsiDxe%2FIScsiProto.c;h=72c90a7fe8c997550a639318810964e187b8b1eb;hp=acb7876ab54b6480a5bc9058d387719e3186eb71;hb=75acfab6c310d12666bcd7f7655a1c6fb8e1822d;hpb=bef3fd0c68eed51708dcce83443b83ac08b29eff diff --git a/NetworkPkg/IScsiDxe/IScsiProto.c b/NetworkPkg/IScsiDxe/IScsiProto.c index acb7876ab5..72c90a7fe8 100644 --- a/NetworkPkg/IScsiDxe/IScsiProto.c +++ b/NetworkPkg/IScsiDxe/IScsiProto.c @@ -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. @@ -1539,6 +1539,12 @@ IScsiCheckOpParams ( IScsiGetValueByKeyFromList (KeyValueList, ISCSI_KEY_DATA_PDU_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)) { // @@ -1558,7 +1564,7 @@ ON_ERROR: /** - Fill the oprational parameters. + Fill the operational parameters. @param[in] Conn The connection in iSCSI login. @param[in, out] Pdu The iSCSI login request PDU to fill the parameters.