mirror of https://github.com/acidanthera/audk.git
NetworkPkg/IScsiDxe: Fix the incorrect/needless DHCP process.
The existing attempt should not trigger the DHCP process if it doesn't associates with the current NIC. That's incorrect when displaying the initiator info in attempt page. Cc: Karunakar P <karunakarp@amiindia.co.in> Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Karunakar p <karunakarp@amiindia.co.in>
This commit is contained in:
parent
452676ffd8
commit
067ca83822
|
@ -1994,9 +1994,12 @@ IScsiGetConfigData (
|
|||
|
||||
continue;
|
||||
}
|
||||
} else if (AttemptTmp->SessionConfigData.InitiatorInfoFromDhcp && !AttemptTmp->ValidPath) {
|
||||
} else if (AttemptTmp->SessionConfigData.InitiatorInfoFromDhcp &&
|
||||
!AttemptTmp->ValidPath &&
|
||||
AttemptTmp->NicIndex == mPrivate->CurrentNic) {
|
||||
//
|
||||
// Get DHCP information for already added, but failed, attempt.
|
||||
// If the attempt associates with the current NIC, we can
|
||||
// get DHCP information for already added, but failed, attempt.
|
||||
//
|
||||
AttemptTmp->DhcpSuccess = FALSE;
|
||||
if (!mPrivate->Ipv6Flag && (AttemptTmp->SessionConfigData.IpMode == IP_MODE_IP4)) {
|
||||
|
|
Loading…
Reference in New Issue