summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/IScsiDxe/IScsiDriver.c
diff options
context:
space:
mode:
authorhegdenag <nagaraj-p.hegde@hpe.com>2017-02-13 15:20:17 +0800
committerJiaxin Wu <jiaxin.wu@intel.com>2017-02-15 14:36:10 +0800
commit483ee515205504f8c964c51621b01d611e8828e5 (patch)
treece84d0490210e68bcffdc31c6c0128d89ea75689 /NetworkPkg/IScsiDxe/IScsiDriver.c
parentb8b769ab8162cf0e3bc7bc3d63d47ee69542e01b (diff)
downloadedk2-483ee515205504f8c964c51621b01d611e8828e5.tar.gz
edk2-483ee515205504f8c964c51621b01d611e8828e5.tar.bz2
edk2-483ee515205504f8c964c51621b01d611e8828e5.zip
NetworkPkg/iSCSIDxe: Update the condition for IScsiStart Abort
Update existing #define and add a new #define used for the PCD PcdIScsiAIPNetworkBootPolicy. Update the code in iScsiStart according to the #define changes in iScsiDriver.h Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hegde Nagaraj P <nagaraj-p.hegde@hpe.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Sriram Subramanian <sriram-s@hpe.com> Reviewed-by: Zhang Lubo <lubo.zhang@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Diffstat (limited to 'NetworkPkg/IScsiDxe/IScsiDriver.c')
-rw-r--r--NetworkPkg/IScsiDxe/IScsiDriver.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/NetworkPkg/IScsiDxe/IScsiDriver.c b/NetworkPkg/IScsiDxe/IScsiDriver.c
index 78c93ba66c..59f387f3c0 100644
--- a/NetworkPkg/IScsiDxe/IScsiDriver.c
+++ b/NetworkPkg/IScsiDxe/IScsiDriver.c
@@ -2,6 +2,8 @@
The entry point of IScsi driver.
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2017 Hewlett Packard Enterprise Development LP<BR>
+
This program and the accompanying materials
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
@@ -419,7 +421,11 @@ IScsiStart (
}
NetworkBootPolicy = PcdGet8 (PcdIScsiAIPNetworkBootPolicy);
- if (NetworkBootPolicy != ALWAYS_USE_UEFI_ISCSI_AND_IGNORE_AIP) {
+ if (NetworkBootPolicy == ALWAYS_USE_ISCSI_HBA_AND_IGNORE_UEFI_ISCSI) {
+ return EFI_ABORTED;
+ }
+
+ if (NetworkBootPolicy != ALWAYS_USE_UEFI_ISCSI_AND_IGNORE_ISCSI_HBA) {
//
// Check existing iSCSI AIP.
//