From nobody Tue Feb 10 04:14:10 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+91782+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+91782+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1658712967; cv=none; d=zohomail.com; s=zohoarc; b=C9itaGw66EYuohNdpDj8wqaSZzV87nYFBPzf0plAXEStrxMYLXMa2qbT4C/4oamAFg5OIoPPjzM7GyRujlctK0/D4mQz2NI+dFs7GEeeP1cnhLCIqqOqJg1Fv88ErVevjD1NTOla5otku7nb4S+z/ZfoXcLTT4W5JDd+4OvEJLg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658712967; 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=/TCx2r1UWgYSqe//IgaQuZDd9GUnnE+CGg7/ccepOQw=; b=AYmeYFEQtJP0WvJjy3x4twcJoXQP5gRKP3cJyHqIirlxEsvwLEe0cCZtSTffDGPIGN++xM692Zubc+y9ihdRYiaHj5MCcV39MB3uNBNX2LHgtSvKuYUqwuzYVxgKSK+z2Fboc08dCGlsqf9G1uNw16e7d9RTZvKSYpQ9Jbj7Hrg= 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+91782+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 1658712966999952.8358152388728; Sun, 24 Jul 2022 18:36:06 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id V72RYY1788612x5A0wL57xiA; Sun, 24 Jul 2022 18:36:06 -0700 X-Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web12.23226.1658712965041092075 for ; Sun, 24 Jul 2022 18:36:05 -0700 X-Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26OJTZKv001448; Mon, 25 Jul 2022 01:36:03 GMT X-Received: from p1lg14880.it.hpe.com (p1lg14880.it.hpe.com [16.230.97.201]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3hhc9gskda-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Jul 2022 01:36:03 +0000 X-Received: from p1lg14886.dc01.its.hpecorp.net (unknown [10.119.18.237]) (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 p1lg14880.it.hpe.com (Postfix) with ESMTPS id AB80C800E81; Mon, 25 Jul 2022 01:36:02 +0000 (UTC) X-Received: from WAFM3XJD5N.asiapacific.hpqcorp.net (unknown [16.231.227.36]) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTP id 5856D801078; Mon, 25 Jul 2022 01:36:01 +0000 (UTC) From: "Nickle Wang" To: devel@edk2.groups.io Cc: Abner Chang , Yang Atom , Nick Ramirez Subject: [edk2-devel] [edk2-staging][PATCH v2 03/15] edk2-staging/RedfishClientPkg: Update Redfish Resource Config Protocol Date: Mon, 25 Jul 2022 09:35:43 +0800 Message-Id: <20220725013555.926-4-nickle.wang@hpe.com> In-Reply-To: <20220725013555.926-1-nickle.wang@hpe.com> References: <20220725013555.926-1-nickle.wang@hpe.com> MIME-Version: 1.0 X-Proofpoint-GUID: xYR4AVjLEnCMKuKSsGuSWnE5Pg2I-28v X-Proofpoint-ORIG-GUID: xYR4AVjLEnCMKuKSsGuSWnE5Pg2I-28v 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: eaFPdodpi5YXGO4S8YGyZCIEx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1658712966; bh=DgJzu1mmL7UAiYeLtQaVbiRhbBRZ0uzF6Yg5aOFDVts=; h=Cc:Date:From:Reply-To:Subject:To; b=bkcaJPWy3l9NjteKbuCWJZ8xSKF26Hibc3IeJlt15BmOUC337H8qE9uoH2C+UG1+VcA jj4sKOkRu2UKC7DODsqtEgfSWpMyUWyIreAb8Td8BPoJEhaw4AK3FAsTY5t0tAl2jU3v4 MmbJZObnkWcr7pwfoNW0TKGFF07ejr9qNeg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1658712967835100005 Content-Type: text/plain; charset="utf-8" Update Redfish resource config protocol to support Identify action in order to identify remote resource and see if this is resource belongs to current owner or not. Use unicode string instead of ASCII string for all interfaces to align with HTTP interface. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Yang Atom Cc: Nick Ramirez Reviewed-by: Abner Chang --- .../EdkIIRedfishResourceConfigProtocol.h | 29 +++++++++++++++---- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/RedfishClientPkg/Include/Protocol/EdkIIRedfishResourceConfigPr= otocol.h b/RedfishClientPkg/Include/Protocol/EdkIIRedfishResourceConfigProt= ocol.h index d6c41dda52..574c82c442 100644 --- a/RedfishClientPkg/Include/Protocol/EdkIIRedfishResourceConfigProtocol.h +++ b/RedfishClientPkg/Include/Protocol/EdkIIRedfishResourceConfigProtocol.h @@ -1,7 +1,7 @@ /** @file This file defines the EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL interface. =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 @@ -29,7 +29,7 @@ typedef EFI_STATUS (EFIAPI *EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_PROVISIONING) ( IN EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL *This, - IN CHAR8 *Uri, + IN EFI_STRING Uri, IN BOOLEAN HttpPostMode ); =20 @@ -47,7 +47,7 @@ typedef EFI_STATUS (EFIAPI *EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_CONSUME) ( IN EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL *This, - IN CHAR8 *Uri + IN EFI_STRING Uri ); =20 =20 @@ -65,7 +65,7 @@ typedef EFI_STATUS (EFIAPI *EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_UPDATE) ( IN EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL *This, - IN CHAR8 *Uri + IN EFI_STRING Uri ); =20 =20 @@ -83,7 +83,25 @@ typedef EFI_STATUS (EFIAPI *EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_CHECK) ( IN EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL *This, - IN CHAR8 *Uri + IN EFI_STRING Uri + ); + +/** + Identify resource on given URI. + + @param[in] This Pointer to EDKII_REDFISH_RESOURCE_CONFI= G_PROTOCOL instance. + @param[in] Uri The target URI to consume. + + @retval EFI_SUCCESS This is target resource which we want t= o handle. + @retval EFI_UNSUPPORTED This is not the target resource. + @retval Others Some error happened. + +**/ +typedef +EFI_STATUS +(EFIAPI *EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_IDENTIFY) ( + IN EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL *This, + IN EFI_STRING Uri ); =20 // @@ -121,6 +139,7 @@ struct _EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL { EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_CONSUME Consume; EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_UPDATE Update; EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_CHECK Check; + EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_IDENTIFY Identify; EDKII_REDFISH_RESOURCE_CONFIG_PROTOCOL_GET_INFO GetInfo; }; =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 (#91782): https://edk2.groups.io/g/devel/message/91782 Mute This Topic: https://groups.io/mt/92596783/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-