From 8d1f5e04168c1f140cd421fd95cff516a3629b72 Mon Sep 17 00:00:00 2001 From: Zhang Lubo Date: Fri, 17 Feb 2017 14:43:41 +0800 Subject: NetworkPkg:Add scriptable configuration to iSCSI driver by leveraging x-UEFI. v2: Add error handling if can not create Attempts in driver entry point. Since we support to define a macro be a PCD value, we enhance our code by modifying the structure in IFR_NVDATA. This effect code logic mainly in Creating Keywords,Convert IFR NvData To AttemptConfigData ByKeyword and reverse function. Fix typo errors and sync based on the latest code. Enable iSCSI keywords configuration based on x-UEFI name space. we introduce new PCD to control the attempt numbers which will be created in non activated state, besides the Attempt name is changed to READ_ONLY attribute in UI. We can invoke KEYWORD HANDLER Protocol to configure the related keywords. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo Cc: Ye Ting Cc: Fu Siyuan Cc: Wu Jiaxin Reviewed-by: Ye Ting Reviewed-by: Fu Siyuan Reviewed-by: Wu Jiaxin jiaxin.wu@intel.com --- NetworkPkg/NetworkPkg.dec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'NetworkPkg/NetworkPkg.dec') diff --git a/NetworkPkg/NetworkPkg.dec b/NetworkPkg/NetworkPkg.dec index 2aa88942fc..28558d3c25 100644 --- a/NetworkPkg/NetworkPkg.dec +++ b/NetworkPkg/NetworkPkg.dec @@ -45,7 +45,11 @@ # Include/Guid/TlsAuthentication.h gEfiTlsCaCertificateGuid = { 0xfd2340D0, 0x3dab, 0x4349, { 0xa6, 0xc7, 0x3b, 0x4f, 0x12, 0xb4, 0x8e, 0xae }} - + +[PcdsFixedAtBuild] + ## The max attempt number will be created by iSCSI driver. + # @Prompt Max attempt number. + gEfiNetworkPkgTokenSpaceGuid.PcdMaxIScsiAttemptNumber|0x08|UINT8|0x0000000D [PcdsFeatureFlag] ## Indicates if the IPsec IKEv2 Certificate Authentication feature is enabled or not.

-- cgit v1.2.3