From nobody Sat Nov 2 14:24:54 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1486967058717312.7175801623134; Sun, 12 Feb 2017 22:24:18 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id A6BC182106; Sun, 12 Feb 2017 22:24:17 -0800 (PST) Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8942682106 for ; Sun, 12 Feb 2017 22:24:16 -0800 (PST) Received: from HEGDENAG9.asiapacific.hpqcorp.net (hegdenag9.asiapacific.hpqcorp.net [16.154.153.125]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id C03915B; Mon, 13 Feb 2017 06:24:13 +0000 (UTC) X-Original-To: edk2-devel@lists.01.org From: hegdenag To: edk2-devel@lists.01.org Date: Mon, 13 Feb 2017 11:54:06 +0530 Message-Id: <20170213062407.12336-2-nagaraj-p.hegde@hpe.com> X-Mailer: git-send-email 2.8.3.windows.1 In-Reply-To: <20170213062407.12336-1-nagaraj-p.hegde@hpe.com> References: <20170213062407.12336-1-nagaraj-p.hegde@hpe.com> Subject: [edk2] [PATCH v1 1/2] NetworkPkg/iSCSIDxe: Update the condition for IScsiStart Abort X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jaben.carsey@intel.com, ruiyu.ni@intel.com, jiaxin.wu@intel.com, lubo.zhang@intel.com MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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 --- NetworkPkg/IScsiDxe/IScsiDriver.c | 8 +++++++- NetworkPkg/IScsiDxe/IScsiDriver.h | 19 +++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/NetworkPkg/IScsiDxe/IScsiDriver.c b/NetworkPkg/IScsiDxe/IScsiD= river.c index 78c93ba..5ea24b6 100644 --- a/NetworkPkg/IScsiDxe/IScsiDriver.c +++ b/NetworkPkg/IScsiDxe/IScsiDriver.c @@ -2,6 +2,8 @@ The entry point of IScsi driver. =20 Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.
+(C) Copyright 2017 Hewlett Packard Enterprise Development LP
+ 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 ( } =20 NetworkBootPolicy =3D PcdGet8 (PcdIScsiAIPNetworkBootPolicy); - if (NetworkBootPolicy !=3D ALWAYS_USE_UEFI_ISCSI_AND_IGNORE_AIP) { + if (NetworkBootPolicy =3D=3D ALWAYS_USE_ISCSI_HBA_AND_IGNORE_UEFI_ISCSI)= { + return EFI_ABORTED; + } + + if (NetworkBootPolicy !=3D ALWAYS_USE_UEFI_ISCSI_AND_IGNORE_ISCSI_HBA) { // // Check existing iSCSI AIP. // diff --git a/NetworkPkg/IScsiDxe/IScsiDriver.h b/NetworkPkg/IScsiDxe/IScsiD= river.h index 9e59b38..e3c15fa 100644 --- a/NetworkPkg/IScsiDxe/IScsiDriver.h +++ b/NetworkPkg/IScsiDxe/IScsiDriver.h @@ -2,6 +2,8 @@ The header file of IScsiDriver.c. =20 Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.
+(C) Copyright 2017 Hewlett Packard Enterprise Development LP
+ 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 @@ -29,14 +31,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITH= ER EXPRESS OR IMPLIED. =20 #define IP_MODE_AUTOCONFIG_IP4 3 #define IP_MODE_AUTOCONFIG_IP6 4 -#define ALWAYS_USE_UEFI_ISCSI_AND_IGNORE_AIP 0x00 -#define STOP_UEFI_ISCSI_IF_HBA_INSTALL_AIP 0x01 -#define STOP_UEFI_ISCSI_IF_AIP_SUPPORT_IP4 0x02 -#define STOP_UEFI_ISCSI_IF_AIP_SUPPORT_IP6 0x04 -#define STOP_UEFI_ISCSI_IF_AIP_SUPPORT_OFFLOAD 0x08 -#define STOP_UEFI_ISCSI_IF_AIP_SUPPORT_MPIO 0x10 -#define STOP_UEFI_ISCSI_IF_AIP_CONFIGURED_IP4 0x20 -#define STOP_UEFI_ISCSI_IF_AIP_CONFIGURED_IP6 0x40 +#define ALWAYS_USE_UEFI_ISCSI_AND_IGNORE_ISCSI_HBA 0x00 +#define STOP_UEFI_ISCSI_IF_HBA_INSTALL_AIP 0x01 +#define STOP_UEFI_ISCSI_IF_AIP_SUPPORT_IP4 0x02 +#define STOP_UEFI_ISCSI_IF_AIP_SUPPORT_IP6 0x04 +#define STOP_UEFI_ISCSI_IF_AIP_SUPPORT_OFFLOAD 0x08 +#define STOP_UEFI_ISCSI_IF_AIP_SUPPORT_MPIO 0x10 +#define STOP_UEFI_ISCSI_IF_AIP_CONFIGURED_IP4 0x20 +#define STOP_UEFI_ISCSI_IF_AIP_CONFIGURED_IP6 0x40 +#define ALWAYS_USE_ISCSI_HBA_AND_IGNORE_UEFI_ISCSI 0xFF =20 extern EFI_COMPONENT_NAME2_PROTOCOL gIScsiComponentName2; extern EFI_COMPONENT_NAME_PROTOCOL gIScsiComponentName; --=20 2.8.3.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel From nobody Sat Nov 2 14:24:54 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 148696706102398.5905713156252; Sun, 12 Feb 2017 22:24:21 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id DE0718210C; Sun, 12 Feb 2017 22:24:19 -0800 (PST) Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 549968210C for ; Sun, 12 Feb 2017 22:24:19 -0800 (PST) Received: from HEGDENAG9.asiapacific.hpqcorp.net (hegdenag9.asiapacific.hpqcorp.net [16.154.153.125]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id 879655F; Mon, 13 Feb 2017 06:24:16 +0000 (UTC) X-Original-To: edk2-devel@lists.01.org From: hegdenag To: edk2-devel@lists.01.org Date: Mon, 13 Feb 2017 11:54:07 +0530 Message-Id: <20170213062407.12336-3-nagaraj-p.hegde@hpe.com> X-Mailer: git-send-email 2.8.3.windows.1 In-Reply-To: <20170213062407.12336-1-nagaraj-p.hegde@hpe.com> References: <20170213062407.12336-1-nagaraj-p.hegde@hpe.com> Subject: [edk2] [PATCH v1 2/2] NetworkPkg/NetworkPkg.dec: Update comments for the PCD X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jaben.carsey@intel.com, ruiyu.ni@intel.com, jiaxin.wu@intel.com, lubo.zhang@intel.com MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Update comment section for the PCD PcdIScsiAIPNetworkBootPolicy. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hegde Nagaraj P --- NetworkPkg/NetworkPkg.dec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NetworkPkg/NetworkPkg.dec b/NetworkPkg/NetworkPkg.dec index 2ad485d..eedd1e5 100644 --- a/NetworkPkg/NetworkPkg.dec +++ b/NetworkPkg/NetworkPkg.dec @@ -3,8 +3,8 @@ # # This package provides network modules that conform to UEFI 2.4 specifica= tion. # -# (C) Copyright 2015 Hewlett-Packard Development Company, L.P.
# Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
+# (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP
# # This program and the accompanying materials are licensed and made availa= ble under # the terms and conditions of the BSD License which accompanies this distr= ibution. @@ -95,7 +95,7 @@ gEfiNetworkPkgTokenSpaceGuid.PcdDhcp6UidType|4|UINT8|0x10000001 =20 ## Network boot policy to stop UEFI iSCSI if applicable. - # 0x00 =3D Always use UEFI iSCSI and ignore AIP. + # 0x00 =3D Always use UEFI iSCSI and ignore iSCSI HBA. # 0x01 =3D Stop UEFI iSCSI if iSCSI HBA adapter produces AIP protocol wi= th Network Boot. # 0x02 =3D Stop UEFI iSCSI if iSCSI HBA adapter supports booting from iS= CSI IPv4 targets. # 0x04 =3D Stop UEFI iSCSI if iSCSI HBA adapter supports booting from iS= CSI IPv6 targets. @@ -103,6 +103,7 @@ # 0x10 =3D Stop UEFI iSCSI if iSCSI HBA adapter supports multipath I/O f= or iSCSI boot. # 0x20 =3D Stop UEFI iSCSI if iSCSI HBA adapter is currently configured = to boot from iSCSI IPv4 targets. # 0x40 =3D Stop UEFI iSCSI if iSCSI HBA adapter is currently configured = to boot from iSCSI IPv6 targets. + # 0xFF =3D Always use iSCSI HBA and ignore UEFI iSCSI. # @Prompt Type Value of network boot policy used in iSCSI. gEfiNetworkPkgTokenSpaceGuid.PcdIScsiAIPNetworkBootPolicy|0x08|UINT8|0x1= 0000007 =20 --=20 2.8.3.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel