From nobody Mon Feb 9 19:04:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+91875+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+91875+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1658885900; cv=none; d=zohomail.com; s=zohoarc; b=E/IIVOGxECI6JP9hiqHjFjatvpBeJBS19VPC1nK8t8Xz8Gug6jhBRwWXfq6MqxmLGshaWw8o+4d5F4K5odWC0w7gGMsTa2GZPhDv71RDe8EUGXVTn8m5srMfpQ0cCqhPGeEXV/XbmDBW6zsqoEKqr/kOed3kVGnHZp5kTKHzmd8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658885900; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=n0QD70xQ726tcogjzlmgGha+LKKAgZGTIdhLuanmg+I=; b=ACCoPiR1xu9V2RnmrZEaL8XGAVpp6wq/M8n/ZjGOWIGrlDOBq6uRVZoUnsjbOwUHoga32cYint8KEEFLVipffmymyRB/vX5MzzQ6qeoJ/iknQxyY9jrCp1h4GZdncdMxWIdcdQlWBG+EvH1GFImb5kFCW8lyVZBu7x4pZIvPEqw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+91875+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1658885900568126.6611424758147; Tue, 26 Jul 2022 18:38:20 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 28kOYY1788612xaa8aJGngy8; Tue, 26 Jul 2022 18:38:20 -0700 X-Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web09.14922.1658885899203891583 for ; Tue, 26 Jul 2022 18:38:19 -0700 X-Received: from pps.filterd (m0148664.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26R0q5Uu030585; Wed, 27 Jul 2022 01:38:16 GMT X-Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3hjew9xsr7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Jul 2022 01:38:16 +0000 X-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 p1lg14878.it.hpe.com (Postfix) with ESMTPS id BE29DD2C5; Wed, 27 Jul 2022 01:38:15 +0000 (UTC) X-Received: from WAFM3XJD5N.asiapacific.hpqcorp.net (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 7DE6A8052CC; Wed, 27 Jul 2022 01:38:14 +0000 (UTC) From: "Nickle Wang" To: devel@edk2.groups.io Cc: Abner Chang , Yang Atom , Nick Ramirez Subject: [edk2-devel] [edk2-staging][PATCH v3 07/15] edk2-staging/RedfishClientPkg: Update ETag driver Date: Wed, 27 Jul 2022 09:37:54 +0800 Message-Id: <20220727013802.247-8-nickle.wang@hpe.com> In-Reply-To: <20220727013802.247-1-nickle.wang@hpe.com> References: <20220727013802.247-1-nickle.wang@hpe.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: us3gKK6_xSkw9idYKijeNbfV9uZF-8EJ X-Proofpoint-GUID: us3gKK6_xSkw9idYKijeNbfV9uZF-8EJ X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nickle.wang@hpe.com X-Gm-Message-State: F6iNSKVxtonhYU1yxkJnKBaBx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1658885900; bh=OQuqYpN/v3Q/GMZ6DWrr4U2JdT7hg+ISeLqew7YQEng=; h=Cc:Date:From:Reply-To:Subject:To; b=X1tnfL4j0OiB3bw+v3gBqqmx0Vln12Q1n2cVTJ4iBjtgekqu4LgC2QLSf67WAsammqz vbZrYSMTXHlh+wN0V2di64Ka5+tjroMQ66mIOu/iawYt0z2kP7JIxJP3pxN78aqbBupVj SJsX30kh451jThLK6B3l1+I948BykLrPMRM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1658885901035100029 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Abner Chang --- 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 } } ## Include/Protocol/EdkIIRedfishResourceConfigProtocol.h gEdkIIRedfishResourceConfigProtocolGuid =3D { 0x6f164c68, 0xfb09, 0x4646= , { 0xa8, 0xd3, 0x24, 0x11, 0x5d, 0xab, 0x3e, 0xe7 } } - ## Include/Protocol/EdkiiRedfishETagProtocol.h + ## Include/Protocol/EdkIIRedfishETagProtocol.h gEdkIIRedfishETagProtocolGuid =3D { 0x5706d368, 0xaf66, 0x48f5= , { 0x89, 0xfc, 0xa6, 0x61, 0xce, 0xb5, 0xa6, 0xa9 } } ## Include/Protocol/EdkIIRedfishConfigLangMapProtocol.h gEdkIIRedfishConfigLangMapProtocolGuid =3D { 0x1d9ba9fe, 0x5d5a, 0x4b= 66, {0x83, 0x5b, 0xe2, 0x5d, 0x13, 0x93, 0x4a, 0x9c } } 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 =20 - (C) Copyright 2021 Hewlett Packard Enterprise Development LP
+ (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -398,17 +398,17 @@ SaveETagList ( // Status =3D GetVariable2 ( VariableName, - &gEfiCallerIdGuid, + &mRedfishVariableGuid, (VOID *)&Data, NULL ); if (!EFI_ERROR (Status)) { FreePool (Data); - gRT->SetVariable (VariableName, &gEfiCallerIdGuid, VARIABLE_ATTRIBUTE_= NV_BS, 0, NULL); + gRT->SetVariable (VariableName, &mRedfishVariableGuid, VARIABLE_ATTRIB= UTE_NV_BS, 0, NULL); } =20 =20 - return gRT->SetVariable (VariableName, &gEfiCallerIdGuid, VARIABLE_ATTRI= BUTE_NV_BS, VarSize, (VOID *)VarData); + return gRT->SetVariable (VariableName, &mRedfishVariableGuid, VARIABLE_A= TTRIBUTE_NV_BS, VarSize, (VOID *)VarData); } =20 /** @@ -444,7 +444,7 @@ InitialETagList ( // Status =3D GetVariable2 ( VariableName, - &gEfiCallerIdGuid, + &mRedfishVariableGuid, (VOID *)&VarData, &VariableSize ); 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 Common header file for RedfishETagDxe driver. =20 - (C) Copyright 2021 Hewlett Packard Enterprise Development LP
+ (C) Copyright 2021-2022 Hewlett Packard Enterprise Development LP
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -11,6 +11,7 @@ #define REDFISH_ETAG_DXE_H_ =20 #include +#include =20 // // Libraries @@ -30,7 +31,6 @@ #include =20 #define ETAG_VARIABLE_NAME L"RedfishETag" -#define IS_EMPTY_STRING(a) ((a) =3D=3D NULL || (a)[0] =3D=3D '\0') #define ETAG_DEBUG_ENABLED 0x00 =20 // --=20 2.32.0.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#91875): https://edk2.groups.io/g/devel/message/91875 Mute This Topic: https://groups.io/mt/92641649/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-