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 7F44C7803E4 for ; Wed, 3 Jan 2024 12:00:26 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=gJjUfnCeRFvKWAmapfH8wcVLUA/pKN2s7mS0EKsPbyk=; 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=1704283225; v=1; b=Fq4SzYj/MPzCXam9jQ/MtaTN2hnlNLwluHT6SELg6gDEyhJNyOYSAiy8BjdUk9ALhuu4fJMj ZBL1lHrTn0AhbjXs5biLkGmbrAIoD9EP6eoOC4OxGldiXeZ9u8m2e75EXUGWovdzcuUte8vENYe PYUigGttVaNk/fkI2loIiVLc= X-Received: by 127.0.0.2 with SMTP id Ih6rYY7687511xqoVjPNfDjn; Wed, 03 Jan 2024 04:00:25 -0800 X-Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.77]) by mx.groups.io with SMTP id smtpd.web10.15977.1704283224652049028 for ; Wed, 03 Jan 2024 04:00:24 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wpt0FBh4yDkKtfZBn4ghBUveDdaCZVhdIO/FsNjYkQq4M6O7w/BUqzCIkecew9QsNpaQt4u4Q2ztTArL4YCcf+2gGpYzmpnZPFAVMhZTJ41jb3VGxFSAk3KvMv5WBqr/1N4QsT1HHIznYTNX3V7hakrDNU6wChV06/IwINB4TawGmTSHFP32dVzw3fxCWsziaG5fMMqD0xpUogVbbglM6n2eWeoSf34Ds1MiW56KKqtAvqtKWQxFJ410jdbc40qaA+Lzr7wkyaD3O8LRx3dehuVKvrC4tcFq9sr1VB7jKmGiviwGI0Z5EM4KDxvQ0Vc8TkSmynrepxHY6NgQ+NzbRw== 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=jULziBLK0Qmmh+33qtB5LZBe+R+hn0kS8rw1vtC0QgE=; b=W7euhc1xoY4DLbTW/XnEX9g7JoAgwcjCZxVEJjuOh4pUitgsHMJec5UVZHrrDr7MgA++YkQfbUZhq8ejPI79GkoVgkjz4O2zlIYBrdlsPc3Sm4APRjBb2TRD0a3fIrN4r7AsrgHv5XJP3LIoIrpMuk0LNx+Q2bfsWFKiwIkKTdJqRizWi/+s/XbBoLPL4uHTLBtnw9ANAcpX1EV83lT2l6l2/gy6lm/yIGWB4yQV8e3fv8nAUhfzNm5qSGZnXF8ptQgpDHggxK7mGv9tGfMWEodft1/9fIXhc1AGpFhVYqQEuLdvaJuW1xouzVZUkV1YhOAtHLn2WwGg9kuO0v6CDw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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 MW4PR03CA0266.namprd03.prod.outlook.com (2603:10b6:303:b4::31) by SJ2PR12MB8110.namprd12.prod.outlook.com (2603:10b6:a03:4fc::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Wed, 3 Jan 2024 12:00:19 +0000 X-Received: from CO1PEPF000044FA.namprd21.prod.outlook.com (2603:10b6:303:b4:cafe::34) by MW4PR03CA0266.outlook.office365.com (2603:10b6:303:b4::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13 via Frontend Transport; Wed, 3 Jan 2024 12:00:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.118.232) by CO1PEPF000044FA.mail.protection.outlook.com (10.167.241.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.1 via Frontend Transport; Wed, 3 Jan 2024 12:00:18 +0000 X-Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Wed, 3 Jan 2024 04:00:06 -0800 X-Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Wed, 3 Jan 2024 04:00:06 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Wed, 3 Jan 2024 04:00:05 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [edk2-redfish-client][PATCH 02/10] RedfishClientPkg: use HTTP cache lib Date: Wed, 3 Jan 2024 20:00:05 +0800 Message-ID: <20240103120005.61774-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: CO1PEPF000044FA:EE_|SJ2PR12MB8110:EE_ X-MS-Office365-Filtering-Correlation-Id: b989ecc4-3b60-4c40-b16e-08dc0c538e5c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: HWeoTtgr7k75u0HvjnVSrDJ25DAWnpzgTb5j+LqQ8gNpLA5fmjAXuOIpKl3ZinzNqEvWJNjpHU61VYnadM0MKPCWhKd6vMGJpcI3Kh/AnSpoWxhzISKZ/x65baV0a5g+iHKxz/grBE1KlFwlAczJQ8sj7lQnV1HPwhfMU/ZMI2VMpVsRrOmFVcMo0pZLC2Juf5O0E5rQEk6QhoFH8Ekn1N6f4un9uJjC50p/Q+TFMi4IOE8bRXINcUq5hWDOKnrT6wBZtq63jmvBU6zIGxt3T+Dlfg2W1SXTfJYV9hn1XXHKFpHQxcPC7O2/15B+bWgBbWWyWEzYwLD01Ply9INxLkVxj3b0WR8ZMJlha24eSrJ+c8GUIx9M0LFA6qlDku0BjhfCyJEontre7XRxuGZPQLuoz1zsBXfJkL5QtxjBHzPlUKUQFiYCKFReHp1ZYuIC/9Ulb/ZIfik6rKmwhrITPB9SJ8ornH/TM/o9KCvUzPvhkvHS3y+y24tig11b/XBBVOtMtmQl+lt2V6nWOCo2Rer9hjdoFYPIh7jeTk87sl5nrUNtFEPmota3n/2EhZIiSrvVKyqO7pfTbtQ8IaUomMbxjOns4VndIkp5CoZ2Zg7Ow/+QaQ5dDDUA6R6vlKX9/u0nEPVe4Bs2Irxlp91zw6/HTD7aKULPKcnBfgYQHJyDN7PdYiZMxJXbSk8yELjdOPw1+jJ1QvEbSQRSL/qs3Ary5BZj9VNAm2jXrd2/szx/mqh1+s5juOJeW/wMum7/ X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2024 12:00:18.9088 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b989ecc4-3b60-4c40-b16e-08dc0c538e5c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000044FA.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8110 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: R8zjgRjzFnmd80BXw37UnCvAx7686176AA= 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="Fq4SzYj/"; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Add RedfishHttpCacheLib header file for feature driver to use RedfishHttpCacheLib. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez --- RedfishClientPkg/Include/RedfishCollectionCommon.h | 4 +++- RedfishClientPkg/Include/RedfishResourceCommon.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RedfishClientPkg/Include/RedfishCollectionCommon.h b/RedfishCl= ientPkg/Include/RedfishCollectionCommon.h index 59cc3607..b1e313da 100644 --- a/RedfishClientPkg/Include/RedfishCollectionCommon.h +++ b/RedfishClientPkg/Include/RedfishCollectionCommon.h @@ -2,6 +2,7 @@ Redfish feature driver collection common header file. =20 (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
+ Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . =20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -26,6 +27,7 @@ #include #include #include +#include =20 // // Protocols @@ -46,7 +48,7 @@ typedef struct _REDFISH_COLLECTION_PRIVATE { EFI_STRING CollectionUri; CHAR8 *CollectionJson; REDFISH_PAYLOAD CollectionPayload; - REDFISH_RESPONSE RedResponse; + REDFISH_RESPONSE Response; EFI_STRING RedfishVersion; } REDFISH_COLLECTION_PRIVATE; =20 diff --git a/RedfishClientPkg/Include/RedfishResourceCommon.h b/RedfishClie= ntPkg/Include/RedfishResourceCommon.h index b006755d..d354d3b0 100644 --- a/RedfishClientPkg/Include/RedfishResourceCommon.h +++ b/RedfishClientPkg/Include/RedfishResourceCommon.h @@ -2,7 +2,7 @@ Redfish feature driver common header file. =20 (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP
- Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . + Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. =20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -32,6 +32,7 @@ #include #include #include +#include =20 // // Protocols --=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 (#113072): https://edk2.groups.io/g/devel/message/113072 Mute This Topic: https://groups.io/mt/103500373/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-