NetworkPkg: Bug fix of iSCSI to support MPIO

If two attempts added on different NIC and enable
MPIO attribute, then change the attempts order. If
both two attempts succeed to connect the target,it
should abort the later one in the order and uninstall
ExtScsiPassThruProtocol Interface, But now it
unistall it twice.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-By: Ye Ting <ting.ye@intel.com>
Reviewed-By: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com>
This commit is contained in:
Zhang, Lubo 2016-05-11 09:37:39 +08:00 committed by Jiaxin Wu
parent fca117fd3f
commit 89446d8967

View File

@ -865,10 +865,22 @@ IScsiStart (
IScsiSessionAbort (ExistPrivate->Session);
}
Status = IScsiCleanDriverData (ExistPrivate);
if (EFI_ERROR (Status)) {
goto ON_ERROR;
if (ExistPrivate->DevicePath != NULL) {
Status = gBS->UninstallProtocolInterface (
ExistPrivate->ExtScsiPassThruHandle,
&gEfiDevicePathProtocolGuid,
ExistPrivate->DevicePath
);
if (EFI_ERROR (Status)) {
goto ON_ERROR;
}
FreePool (ExistPrivate->DevicePath);
}
gBS->CloseEvent (ExistPrivate->ExitBootServiceEvent);
FreePool (ExistPrivate);
}
} else {
//