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:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user