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 28C71740032 for ; Thu, 4 Jan 2024 02:31:59 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=o8JbBGGBqd3IMdIOq7oLeIGU51h33dD0WVCCSMlG5vQ=; 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=1704335518; v=1; b=MppWtR0pPEJ/CWGkrPluxYPS+nAd6aKYkgl6pJMeLScYcc/33qgpTEcez1Jf/PMOMqh6dtZz x/snqgfDgX3Aycu8MNUFkCeOJlJc+K7hbtfV8Ym0MKRe2NayolLqgoaLlOBifnPUY8lnc+UQmv0 Uhe+b4/1FIok0Vf/XEvs2VfA= X-Received: by 127.0.0.2 with SMTP id vlRNYY7687511x6aLmYC5qSc; Wed, 03 Jan 2024 18:31:58 -0800 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.44]) by mx.groups.io with SMTP id smtpd.web11.45871.1704335518188742154 for ; Wed, 03 Jan 2024 18:31:58 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wp/Vr6xgpl+H3EYQB+hhdUgeR24naCcwecAY3X8qDjwK55oBckKqn3+O8uS/zA6B1s6NVJQUsyBOHlreW83JMol8mAGPwXDiqgx5Ihk099sKP4uIAVAXHsXxQdrqPwBQYG90jZFqBKEWXw8OmEHc3++S5nrXYrBhxIY3WYnXctPxS/3c/CF/KCswqZA7++OuS9MAoghWHc/JF96ceC9hI5VYcYUIHCXUALEavZF11RLUJ3etgg70Sf/NuRZhr+1/hHlIOU7KDWGBXvf68ZgIBrnQZQI08gDlFOB4nKjwKcqP1KYWu5iKZNoupdN11HYkpjhqWOuZ49Cx3T33P4aMHw== 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=gitZz5XCEhFmLsTWYFIlcdlIungBCVErTkZsWTeP7FkGJ4F4VBqTZUOnD4gxdOUwd2jJDuh1RdqIp4ZTJX93deH9/7EqMI8LQ/mk1mV3lEgsemWSqGG+Q8BM67/RcFBHxzPb3LqEhAcbaEg9ZDQcCoYlFHy44M3oz6m9kP9WLbv9ahnlj3CSEdDuWUfQ558jeXb0gEYb+uZvpcyTuwhT7zmGGlwT5UCNRT/pqeQilX5tCOc80aZiKIwKsYmgk9gRGspVmekWj1gox65xUtoZD3eaRJyylaS+yQEVGp7K6Uyyz6/PFS1Jf6mhtbjyt+td+qJ8n9nbxWY4oufxUlRFYw== 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 CH2PR17CA0006.namprd17.prod.outlook.com (2603:10b6:610:53::16) by DS0PR12MB8041.namprd12.prod.outlook.com (2603:10b6:8:147::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13; Thu, 4 Jan 2024 02:31:55 +0000 X-Received: from DS2PEPF00003441.namprd04.prod.outlook.com (2603:10b6:610:53:cafe::84) by CH2PR17CA0006.outlook.office365.com (2603:10b6:610:53::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.13 via Frontend Transport; Thu, 4 Jan 2024 02:31:55 +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.7159.9 via Frontend Transport; Thu, 4 Jan 2024 02:31:54 +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; Wed, 3 Jan 2024 18:31:44 -0800 X-Received: from rnnvmail204.nvidia.com (10.129.68.6) 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.986.41; Wed, 3 Jan 2024 18:31:43 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Wed, 3 Jan 2024 18:31:42 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [edk2-redfish-client][PATCH v2 02/10] RedfishClientPkg: use HTTP cache lib Date: Thu, 4 Jan 2024 10:31:42 +0800 Message-ID: <20240104023142.10858-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_|DS0PR12MB8041:EE_ X-MS-Office365-Filtering-Correlation-Id: f1e00750-e1a4-42d7-3a16-08dc0ccd5133 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: sR/s4nugVd87kJZFjtY/2uItlVaG1IOITdVIpvJy1zCTHtT3O9/6EWnSneCONCan8LPokCimrWNn34InLDtTAP0gGzOw23n/aI6ovxn8dYubZtMUePHeO5yFEQkDT7hpqiy82tBi4iknrP7aH7lWakbYAhlf0qVSeuIujXJcMFVcZyFYUp8UXXMypYgVmesjbtvE75lHorl7yeF9pe1IZhnexMMnF+fZaBgAq2B8NJfdM9ehgTmgk4Y9ufMPz6ODYEHtesJ4j0zkU0xYZHfyatnThQ6/0jIR1tVGSBlsQJgLURePS1CT4lA8b+FAFWDore32Hox90UF1fbV+2NDozwDToGaXL7Ql9ob7OB938+IJ6Hr+ftzUN+g+zdLLpcYqQCKJTX2Bor+eayrzqaIyLRnQQYPnMseix/70NZOUb7Mn8bcIyBvAMncsCdxi0DClgs7e6dJc0ik2DZtpM+HavB3hyWtiZVdwFlotOVLNQgbXdr4jv7pSLwefUn7d+avgsdIaILvBV2IoZoxJjulv0jZnhk+2Zc9Hp1s2/Ke6GbSWOs5yla2L/0orQzTdzEZOXf4F48DeKu1BTvwt5rJ70OsQQl5N45/HfrUPdOm6rpa/ofi9JAtJwTARDxAGnEt3xj2TA9C8LzeMzYLEQvA+PgQsFSXMkU33fZ5+VJ7epix6ES4k5EVWuFFBIyt1rlhQTtr/Ylqe1ixWlSnIt/VdBnpOIvDftEZgklysVExvu1DRBNrxHs9RHWG2DNK6u/7z X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2024 02:31:54.8502 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f1e00750-e1a4-42d7-3a16-08dc0ccd5133 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: DS0PR12MB8041 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: w9jd5lrqMV7fMeNaikS3Nk83x7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=MppWtR0p; 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; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") 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 (#113116): https://edk2.groups.io/g/devel/message/113116 Mute This Topic: https://groups.io/mt/103515958/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-