From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web12.8386.1657628516970296671 for ; Tue, 12 Jul 2022 05:21:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=pD7MYAto; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0192e24d61=nickle.wang@hpe.com) Received: from pps.filterd (m0150244.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26CC8RcB007597; Tue, 12 Jul 2022 12:21:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=u3qCm7SmhzmzlkJNlLSNA5+UKUYZqykUJpDHmU47kVo=; b=pD7MYAtoW0wThVOw5iR94o7DKrJavrqzKUXDMrgnkWwLY/Da9OHwMR3ZB+CI0ZIcM/y2 qF9zhmkFLA3AEGOcuO/Lacb8cUBLgKFzimJTdJmZA9acyaIsp4GrnMuSw/IwaPfl7YhN Aru/TG9SyB0FP1gvbbfvUrbkUbc8Ft583RVhSc+MH6EZJ69jv2WCxwyGONNZ31rBfHi0 t1WWcK+w9Sh1WD/3KxtR5+G7daMXXbvrj0O7/7d9U/IRd9UapjmtNg+dc7mn4p6fliu5 UBPH5PGf1NYNrSrfmvN7fMzKjrDo7IrrmffXtKrGpBXcbHz38RVNFIRHaENfiMxiUIYj ig== Received: from p1lg14879.it.hpe.com (p1lg14879.it.hpe.com [16.230.97.200]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3h98pp03yu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Jul 2022 12:21:55 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14879.it.hpe.com (Postfix) with ESMTPS id 28221D2C7; Tue, 12 Jul 2022 12:21:54 +0000 (UTC) Received: from WAFM3XJD5N.asiapacific.hpqcorp.net (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 23833802BDD; Tue, 12 Jul 2022 12:21:52 +0000 (UTC) From: "Nickle Wang" To: devel@edk2.groups.io Cc: Abner Chang , Yang Atom , Nick Ramirez Subject: [edk2-staging][PATCH 07/15] edk2-staging/RedfishClientPkg: Update ETag driver Date: Tue, 12 Jul 2022 20:21:35 +0800 Message-Id: <20220712122143.1827-8-nickle.wang@hpe.com> X-Mailer: git-send-email 2.32.0.windows.2 In-Reply-To: <20220712122143.1827-1-nickle.wang@hpe.com> References: <20220712122143.1827-1-nickle.wang@hpe.com> MIME-Version: 1.0 X-Proofpoint-GUID: Nd5CxYNFbkD6ZhCQHp-xT4JfiOHv6a2Q X-Proofpoint-ORIG-GUID: Nd5CxYNFbkD6ZhCQHp-xT4JfiOHv6a2Q X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-12_08,2022-07-12_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=744 mlxscore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 spamscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207120048 Content-Transfer-Encoding: quoted-printable Update ETag driver and use specific variable GUID. Also fix the typo in comment. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Yang Atom Cc: Nick Ramirez --- RedfishClientPkg/RedfishClientPkg.dec | 2 +- RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c | 10 +++++----- RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/RedfishClientPkg/RedfishClientPkg.dec b/RedfishClientPkg/Redfi= shClientPkg.dec index 7bdab5be0c..67929341df 100644 --- a/RedfishClientPkg/RedfishClientPkg.dec +++ b/RedfishClientPkg/RedfishClientPkg.dec @@ -36,7 +36,7 @@ gEdkIIRedfishFeatureProtocolGuid =3D { 0x785CC694, 0x4930, 0xEFBF= , { 0x2A, 0xCB, 0xA4, 0xB6, 0xA1, 0xCC, 0xAA, 0x34 } }=0D ## Include/Protocol/EdkIIRedfishResourceConfigProtocol.h=0D gEdkIIRedfishResourceConfigProtocolGuid =3D { 0x6f164c68, 0xfb09, 0x4646= , { 0xa8, 0xd3, 0x24, 0x11, 0x5d, 0xab, 0x3e, 0xe7 } }=0D - ## Include/Protocol/EdkiiRedfishETagProtocol.h=0D + ## Include/Protocol/EdkIIRedfishETagProtocol.h=0D gEdkIIRedfishETagProtocolGuid =3D { 0x5706d368, 0xaf66, 0x48f5= , { 0x89, 0xfc, 0xa6, 0x61, 0xce, 0xb5, 0xa6, 0xa9 } }=0D ## Include/Protocol/EdkIIRedfishConfigLangMapProtocol.h=0D gEdkIIRedfishConfigLangMapProtocolGuid =3D { 0x1d9ba9fe, 0x5d5a, 0x4b= 66, {0x83, 0x5b, 0xe2, 0x5d, 0x13, 0x93, 0x4a, 0x9c } }=0D diff --git a/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c b/RedfishClie= ntPkg/RedfishETagDxe/RedfishETagDxe.c index 73d3a8c39a..52015672f9 100644 --- a/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c +++ b/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.c @@ -1,6 +1,6 @@ /** @file=0D =0D - (C) Copyright 2021 Hewlett Packard Enterprise Development LP
=0D + (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D @@ -398,17 +398,17 @@ SaveETagList ( //=0D Status =3D GetVariable2 (=0D VariableName,=0D - &gEfiCallerIdGuid,=0D + &mRedfishVariableGuid,=0D (VOID *)&Data,=0D NULL=0D );=0D if (!EFI_ERROR (Status)) {=0D FreePool (Data);=0D - gRT->SetVariable (VariableName, &gEfiCallerIdGuid, VARIABLE_ATTRIBUTE_= NV_BS, 0, NULL);=0D + gRT->SetVariable (VariableName, &mRedfishVariableGuid, VARIABLE_ATTRIB= UTE_NV_BS, 0, NULL);=0D }=0D =0D =0D - return gRT->SetVariable (VariableName, &gEfiCallerIdGuid, VARIABLE_ATTRI= BUTE_NV_BS, VarSize, (VOID *)VarData);=0D + return gRT->SetVariable (VariableName, &mRedfishVariableGuid, VARIABLE_A= TTRIBUTE_NV_BS, VarSize, (VOID *)VarData);=0D }=0D =0D /**=0D @@ -444,7 +444,7 @@ InitialETagList ( //=0D Status =3D GetVariable2 (=0D VariableName,=0D - &gEfiCallerIdGuid,=0D + &mRedfishVariableGuid,=0D (VOID *)&VarData,=0D &VariableSize=0D );=0D diff --git a/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.h b/RedfishClie= ntPkg/RedfishETagDxe/RedfishETagDxe.h index 58925b4a51..3deab377dc 100644 --- a/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.h +++ b/RedfishClientPkg/RedfishETagDxe/RedfishETagDxe.h @@ -1,7 +1,7 @@ /** @file=0D Common header file for RedfishETagDxe driver.=0D =0D - (C) Copyright 2021 Hewlett Packard Enterprise Development LP
=0D + (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D =0D @@ -11,6 +11,7 @@ #define REDFISH_ETAG_DXE_H_=0D =0D #include =0D +#include =0D =0D //=0D // Libraries=0D @@ -30,7 +31,6 @@ #include =0D =0D #define ETAG_VARIABLE_NAME L"RedfishETag"=0D -#define IS_EMPTY_STRING(a) ((a) =3D=3D NULL || (a)[0] =3D=3D '\0')=0D #define ETAG_DEBUG_ENABLED 0x00=0D =0D //=0D --=20 2.32.0.windows.2