From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 2112E740048 for ; Mon, 4 Mar 2024 13:27:17 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=iCoStK1TAeTUrU8sW0W0uYH2kfTiok7TTDHhhd2mpDA=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1709558836; v=1; b=pDpzUJ0rqgMj8cjmFd9sT1yjQTLR6istXxr5OvfZpjC66c/2DsD7A3b/eJqmZAT3DJsfHuBu gkxCFiv/zSm+qQHudIXADNylwp8ekAI/iT3Z/HrxGMUwPL07GL0HCYKWMw35Dxt5MGA93J9iLqE 8g2jLjdQxiL0J4fRSc5GF8ME= X-Received: by 127.0.0.2 with SMTP id XvetYY7687511xtFrVppEb3I; Mon, 04 Mar 2024 05:27:16 -0800 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.51]) by mx.groups.io with SMTP id smtpd.web10.98378.1709558836140334731 for ; Mon, 04 Mar 2024 05:27:16 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wa1SENpxPAaODN073xbxoPtye6BocXa1pq0wyk0czPBqGezRtSqY5RDKTciZB5Rr+0ilA7gaLiiNOyXmAGcFakKBN5FRYyKsHme3FRLtfFK2/Du97zLEMyn66+2qLHdzTIwAMMkuEK61jRNTsuoqD2Wf/lKUyfCM6wT4lFOhGE7EBxxJ1ClHV5He8iFmHUlqByvrDUountcUAJ2Iqr9NUbHmgbQPNJazy4ACkP8IroYiG6DfNn5ijcYemSZbmhbIjelg1X9JI7qCS9Bmt9g2qPru3lKSmpz9/n099W/pxZVgTMwwpqOoYekNPgkOaWpwzruq85AhsQ6UAijm9CveGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/5x9d5pUoshhGBBOZl0Ug1ZbtzokHNuFHAWQyZ4dWnE=; b=Dh7KREyBDVYORxrFTyEAKaCjYtuc7WflLUF2nJO2WLUal6S9+K7o6eWpmrvY4ltS/tcJ/FyZeppumYfgrxBX5QtewyDuA0TYzIoVuVGCSG3QxK+wXrbdUOnHfu+4B4qxVNjSeQbnAORh5JFAfOWEKgUHR0eD858NibcwODcXTnbiQoim/Jk0V5jF7zgArH9T57xsdpT5LC+KhGr5fNl1svC6i5gqQJMs+DgwM9SoHWq294MS/Oqg6tlgXw8Vz/xU9iRiUI/6A8HDJBMZW+M74kVbUHPKMfIIY5TmbheY6vXeOABRx8D6EUJCLEcb/pDIHujE7aRuorBxBveufh4yaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) X-Received: from DS7PR03CA0194.namprd03.prod.outlook.com (2603:10b6:5:3b6::19) by LV8PR12MB9081.namprd12.prod.outlook.com (2603:10b6:408:188::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Mon, 4 Mar 2024 13:27:12 +0000 X-Received: from DS2PEPF00003441.namprd04.prod.outlook.com (2603:10b6:5:3b6:cafe::be) by DS7PR03CA0194.outlook.office365.com (2603:10b6:5:3b6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39 via Frontend Transport; Mon, 4 Mar 2024 13:27:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.117.161) by DS2PEPF00003441.mail.protection.outlook.com (10.167.17.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Mon, 4 Mar 2024 13:27:12 +0000 X-Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 4 Mar 2024 05:27:00 -0800 X-Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Mon, 4 Mar 2024 05:27:00 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Mon, 4 Mar 2024 05:26:59 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [edk2-redfish-client][PATCH 3/3] RedfishClientPkg/Features: support config2 protocol Date: Mon, 4 Mar 2024 21:26:58 +0800 Message-ID: <20240304132658.41244-1-nicklew@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF00003441:EE_|LV8PR12MB9081:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e361a0f-a74f-40da-4137-08dc3c4ecd17 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: uOmVBGy1bypMpimpbIUDc1rxtD9uQbSxYAI7ko8MbyQpGjU0NBPR8wEJr0lg4lDcGFyS3hnc6HqmU9fZfNyNPIc+b0V18KBnwDQOwEDCpLXeVsxCD9e8SukOi7ooTx20dy4946/haomnIy3iBukjMTwISCtysssUjJMph0MXPqns0dGkHBtrBkMqPTjLMqLIf/FBpfmBsRWhk5kMkYxj3tBNBmVUiHkqnfypt1FKH6gD8l2B/H4Blj4KSHnanWlvQuxoP9/Hnj/DIGbirOAccQimjEUvbjOFVZ/6VeS0uEFvQzJ5+q7yu5zkQbnBITYUTrNEcMWIQU65WM0LScJcg9QqmbWH79/e8WdS6vPUwbx6yHVWaTdhmJ0oy9Ag5bAx9rCVgXIYfcSg16VhNbBIfTZiEdVkwzjbsCwQnvA9UCxqHL45phTaxWcTyVpurdihuJZPl32luUoPByQ4UPbpZrjdedAmKp3OuQFBMnLCcXF4bfFd33FK4zIY7Di1AmuxnJAQBOy/PRMmHBrAqRHhR2dxf8BoozbPXJ/HXXVLQmp+43EgaogtAdd3q3Sjq04Dp8VTFDp+teZSERAfl6cNuyinnBiumc4cuUFTnSGn4fYxNaTFmmlLWYIFlqgsy8aj7CwSVXDqm2fSdcD4HkZj1bbz18F6h9sDU/mB9HStAEBNG7Uq9u9TahBF6PiNqhJwKXSMmIC2Mznpn/qRKwX3nb0Rm3NMD2DQRcW+qC+OZqJ2BTkPdR9LihI0rHPnEXxk X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2024 13:27:12.4330 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5e361a0f-a74f-40da-4137-08dc3c4ecd17 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS2PEPF00003441.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9081 Precedence: Bulk 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,nicklew@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: rBPO34nBcNChnUe3uFOpACZxx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Spam-Flag: yes X-Spam-Level: ************ X-GND-Spam-Score: 190 X-GND-Status: SPAM Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=pDpzUJ0r; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Because EdkIIRedfishResourceConfigLib is updated to support Redfish resource config2 protocol, update corresponding functions in feature drivers. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- .../Features/Bios/v1_0_9/Common/BiosCommon.c | 14 +++++++------- .../BootOptionCollectionDxe.c | 14 +++++++------- .../ComputerSystemCollectionDxe.c | 16 ++++++++-------- .../MemoryCollectionDxe/MemoryCollectionDxe.c | 16 ++++++++-------- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c b/Re= dfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c index 1f3c30147..1eb269a84 100644 --- a/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c +++ b/RedfishClientPkg/Features/Bios/v1_0_9/Common/BiosCommon.c @@ -782,7 +782,7 @@ HandleResource ( =20 DEBUG ((REDFISH_DEBUG_TRACE, "%a, process resource for: %s\n", __func__,= Uri)); =20 - Status =3D GetRedfishSchemaInfo (Private->RedfishService, Private->JsonS= tructProtocol, Uri, &SchemaInfo); + Status =3D GetRedfishSchemaInfo (Private->RedfishService, Private->JsonS= tructProtocol, Uri, NULL, &SchemaInfo); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a, failed to get schema information from: %s %r= \n", __func__, Uri, Status)); return Status; @@ -795,7 +795,7 @@ HandleResource ( DEBUG ((REDFISH_DEBUG_TRACE, "%a Identify for %s\n", __func__, Uri)); ConfigLang =3D RedfishGetConfigLanguage (Uri); if (ConfigLang =3D=3D NULL) { - Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, Priva= te->InformationExchange); + Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, NULL,= Private->InformationExchange); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_UNSUPPORTED) { DEBUG ((DEBUG_MANAGEABILITY, "%a, \"%s\" is not handled by us\n", = __func__, Uri)); @@ -811,17 +811,17 @@ HandleResource ( } =20 // - // Check and see if target property exist or not even when collection me= meber exists. + // Check and see if target property exist or not even when collection me= mber exists. // If not, we sill do provision. // DEBUG ((REDFISH_DEBUG_TRACE, "%a Check for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigCheck (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigCheck (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { // // The target property does not exist, do the provision to create prop= erty. // DEBUG ((REDFISH_DEBUG_TRACE, "%a provision for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Uri, P= rivate->InformationExchange, FALSE); + Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Uri, N= ULL, Private->InformationExchange, FALSE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a, failed to provision with GET mode: %r\n", = __func__, Status)); } @@ -833,7 +833,7 @@ HandleResource ( // Consume first. // DEBUG ((REDFISH_DEBUG_TRACE, "%a consume for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigConsume (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigConsume (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a, failed to consume resource for: %s: %r\n", _= _func__, Uri, Status)); } @@ -842,7 +842,7 @@ HandleResource ( // Patch. // DEBUG ((REDFISH_DEBUG_TRACE, "%a update for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigUpdate (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigUpdate (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a, failed to update resource for: %s: %r\n", __= func__, Uri, Status)); } diff --git a/RedfishClientPkg/Features/BootOptionCollection/BootOptionColle= ctionDxe.c b/RedfishClientPkg/Features/BootOptionCollection/BootOptionColle= ctionDxe.c index 4f94a4495..cd1437f54 100644 --- a/RedfishClientPkg/Features/BootOptionCollection/BootOptionCollectionDx= e.c +++ b/RedfishClientPkg/Features/BootOptionCollection/BootOptionCollectionDx= e.c @@ -44,7 +44,7 @@ HandleResource ( =20 DEBUG ((REDFISH_BOOT_OPTION_COLLECTION_DEBUG_TRACE, "%a: process resourc= e for: %s\n", __func__, Uri)); =20 - Status =3D GetRedfishSchemaInfo (Private->RedfishService, Private->JsonS= tructProtocol, Uri, &SchemaInfo); + Status =3D GetRedfishSchemaInfo (Private->RedfishService, Private->JsonS= tructProtocol, Uri, NULL, &SchemaInfo); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: failed to get schema information from: %s %r= \n", __func__, Uri, Status)); return Status; @@ -58,7 +58,7 @@ HandleResource ( SystemRestDetected =3D FALSE; ConfigLang =3D RedfishGetConfigLanguage (Uri); if (ConfigLang =3D=3D NULL) { - Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, Priva= te->InformationExchange); + Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, NULL,= Private->InformationExchange); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_UNSUPPORTED) { DEBUG ((REDFISH_BOOT_OPTION_COLLECTION_DEBUG_TRACE, "%a: \"%s\" is= not handled by us\n", __func__, Uri)); @@ -88,7 +88,7 @@ HandleResource ( // If not, we sill do provision. // DEBUG ((REDFISH_BOOT_OPTION_COLLECTION_DEBUG_TRACE, "%a Check for %s\n",= __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigCheck (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigCheck (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_UNSUPPORTED) { DEBUG ((REDFISH_BOOT_OPTION_COLLECTION_DEBUG_TRACE, "%a: \"%s\" is n= ot handled by us\n", __func__, Uri)); @@ -99,7 +99,7 @@ HandleResource ( // The target property does not exist, do the provision to create prop= erty. // DEBUG ((REDFISH_BOOT_OPTION_COLLECTION_DEBUG_TRACE, "%a provision for = %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Uri, P= rivate->InformationExchange, FALSE); + Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Uri, N= ULL, Private->InformationExchange, FALSE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: failed to provision with GET mode: %r\n", = __func__, Status)); } @@ -114,7 +114,7 @@ HandleResource ( DEBUG ((REDFISH_BOOT_OPTION_COLLECTION_DEBUG_TRACE, "%a system has bee= n reset to default setting. ignore pending settings because they may be sta= le values\n", __func__)); } else { DEBUG ((REDFISH_BOOT_OPTION_COLLECTION_DEBUG_TRACE, "%a consume for %s= \n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigConsume (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigConsume (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: failed to consume resource for: %s: %r\n",= __func__, Uri, Status)); } @@ -124,7 +124,7 @@ HandleResource ( // Patch. // DEBUG ((REDFISH_BOOT_OPTION_COLLECTION_DEBUG_TRACE, "%a update for %s\n"= , __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigUpdate (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigUpdate (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: failed to update resource for: %s: %r\n", __= func__, Uri, Status)); } @@ -262,7 +262,7 @@ CreateCollectionResource ( =20 DEBUG ((REDFISH_BOOT_OPTION_COLLECTION_DEBUG_TRACE, "%a: supported schem= a: %a %a.%a.%a\n", __func__, SchemaInfo.Schema, SchemaInfo.Major, SchemaInf= o.Minor, SchemaInfo.Errata)); =20 - Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, BootOpti= onUri, Private->InformationExchange, TRUE); + Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, BootOpti= onUri, NULL, Private->InformationExchange, TRUE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: failed to create resource for: %s: %r\n", __= func__, BootOptionUri, Status)); } diff --git a/RedfishClientPkg/Features/ComputerSystemCollectionDxe/Computer= SystemCollectionDxe.c b/RedfishClientPkg/Features/ComputerSystemCollectionD= xe/ComputerSystemCollectionDxe.c index 975ba0564..55a6d07db 100644 --- a/RedfishClientPkg/Features/ComputerSystemCollectionDxe/ComputerSystemC= ollectionDxe.c +++ b/RedfishClientPkg/Features/ComputerSystemCollectionDxe/ComputerSystemC= ollectionDxe.c @@ -35,7 +35,7 @@ HandleResource ( =20 DEBUG ((REDFISH_DEBUG_TRACE, "%a: process resource for: %s\n", __func__,= Uri)); =20 - Status =3D GetRedfishSchemaInfo (Private->RedfishService, Private->JsonS= tructProtocol, Uri, &SchemaInfo); + Status =3D GetRedfishSchemaInfo (Private->RedfishService, Private->JsonS= tructProtocol, Uri, NULL, &SchemaInfo); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: failed to get schema information from: %s %r= \n", __func__, Uri, Status)); return Status; @@ -48,7 +48,7 @@ HandleResource ( DEBUG ((REDFISH_DEBUG_TRACE, "%a Identify for %s\n", __func__, Uri)); ConfigLang =3D RedfishGetConfigLanguage (Uri); if (ConfigLang =3D=3D NULL) { - Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, Priva= te->InformationExchange); + Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, NULL,= Private->InformationExchange); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_UNSUPPORTED) { DEBUG ((DEBUG_MANAGEABILITY, "%a: \"%s\" is not handled by us\n", = __func__, Uri)); @@ -90,11 +90,11 @@ HandleResource ( } =20 // - // Check and see if target property exist or not even when collection me= meber exists. + // Check and see if target property exist or not even when collection me= mber exists. // If not, we sill do provision. // DEBUG ((REDFISH_DEBUG_TRACE, "%a Check for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigCheck (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigCheck (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_UNSUPPORTED) { DEBUG ((REDFISH_DEBUG_TRACE, "%a: \"%s\" is not handled by us\n", __= func__, Uri)); @@ -105,7 +105,7 @@ HandleResource ( // The target property does not exist, do the provision to create prop= erty. // DEBUG ((REDFISH_DEBUG_TRACE, "%a provision for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Uri, P= rivate->InformationExchange, FALSE); + Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Uri, N= ULL, Private->InformationExchange, FALSE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: failed to provision with PATCH mode: %r\n"= , __func__, Status)); } @@ -117,7 +117,7 @@ HandleResource ( // Consume first. // DEBUG ((REDFISH_DEBUG_TRACE, "%a consume for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigConsume (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigConsume (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: failed to consume resource for: %s: %r\n", _= _func__, Uri, Status)); } @@ -126,7 +126,7 @@ HandleResource ( // Patch. // DEBUG ((REDFISH_DEBUG_TRACE, "%a update for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigUpdate (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigUpdate (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: failed to update resource for: %s: %r\n", __= func__, Uri, Status)); } @@ -236,7 +236,7 @@ CreateCollectionResource ( =20 DEBUG ((REDFISH_DEBUG_TRACE, "%a: supported schema: %a %a.%a.%a\n", __fu= nc__, SchemaInfo.Schema, SchemaInfo.Major, SchemaInfo.Minor, SchemaInfo.Err= ata)); =20 - Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Private-= >CollectionUri, Private->InformationExchange, TRUE); + Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Private-= >CollectionUri, NULL, Private->InformationExchange, TRUE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a: failed to create resource for: %s: %r\n", __= func__, Private->CollectionUri, Status)); } diff --git a/RedfishClientPkg/Features/MemoryCollectionDxe/MemoryCollection= Dxe.c b/RedfishClientPkg/Features/MemoryCollectionDxe/MemoryCollectionDxe.c index 1b7d74e86..d963fb52a 100644 --- a/RedfishClientPkg/Features/MemoryCollectionDxe/MemoryCollectionDxe.c +++ b/RedfishClientPkg/Features/MemoryCollectionDxe/MemoryCollectionDxe.c @@ -35,7 +35,7 @@ HandleResource ( =20 DEBUG ((REDFISH_DEBUG_TRACE, "%a, process resource for: %s\n", __func__,= Uri)); =20 - Status =3D GetRedfishSchemaInfo (Private->RedfishService, Private->JsonS= tructProtocol, Uri, &SchemaInfo); + Status =3D GetRedfishSchemaInfo (Private->RedfishService, Private->JsonS= tructProtocol, Uri, NULL, &SchemaInfo); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a, failed to get schema information from: %s %r= \n", __func__, Uri, Status)); return Status; @@ -48,7 +48,7 @@ HandleResource ( DEBUG ((REDFISH_DEBUG_TRACE, "%a Identify for %s\n", __func__, Uri)); ConfigLang =3D RedfishGetConfigLanguage (Uri); if (ConfigLang =3D=3D NULL) { - Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, Priva= te->InformationExchange); + Status =3D EdkIIRedfishResourceConfigIdentify (&SchemaInfo, Uri, NULL,= Private->InformationExchange); if (EFI_ERROR (Status)) { if (Status =3D=3D EFI_UNSUPPORTED) { DEBUG ((DEBUG_MANAGEABILITY, "%a, \"%s\" is not handled by us\n", = __func__, Uri)); @@ -86,17 +86,17 @@ HandleResource ( } =20 // - // Check and see if target property exist or not even when collection me= meber exists. + // Check and see if target property exist or not even when collection me= mber exists. // If not, we sill do provision. // DEBUG ((REDFISH_DEBUG_TRACE, "%a Check for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigCheck (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigCheck (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { // // The target property does not exist, do the provision to create prop= erty. // DEBUG ((REDFISH_DEBUG_TRACE, "%a provision for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Uri, P= rivate->InformationExchange, FALSE); + Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Uri, N= ULL, Private->InformationExchange, FALSE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a, failed to provision with GET mode: %r\n", = __func__, Status)); } @@ -108,7 +108,7 @@ HandleResource ( // Consume first. // DEBUG ((REDFISH_DEBUG_TRACE, "%a consume for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigConsume (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigConsume (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a, failed to consume resource for: %s: %r\n", _= _func__, Uri, Status)); } @@ -117,7 +117,7 @@ HandleResource ( // Patch. // DEBUG ((REDFISH_DEBUG_TRACE, "%a update for %s\n", __func__, Uri)); - Status =3D EdkIIRedfishResourceConfigUpdate (&SchemaInfo, Uri); + Status =3D EdkIIRedfishResourceConfigUpdate (&SchemaInfo, Uri, NULL); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a, failed to update resource for: %s: %r\n", __= func__, Uri, Status)); } @@ -227,7 +227,7 @@ CreateCollectionResource ( =20 DEBUG ((REDFISH_DEBUG_TRACE, "%a, supported schema: %a %a.%a.%a\n", __fu= nc__, SchemaInfo.Schema, SchemaInfo.Major, SchemaInfo.Minor, SchemaInfo.Err= ata)); =20 - Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Private-= >CollectionUri, Private->InformationExchange, TRUE); + Status =3D EdkIIRedfishResourceConfigProvisioning (&SchemaInfo, Private-= >CollectionUri, NULL, Private->InformationExchange, TRUE); if (EFI_ERROR (Status)) { DEBUG ((DEBUG_ERROR, "%a, failed to create resource for: %s: %r\n", __= func__, Private->CollectionUri, Status)); } --=20 2.34.1 -=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 (#116317): https://edk2.groups.io/g/devel/message/116317 Mute This Topic: https://groups.io/mt/104721516/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-