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 2A9E5D8042B for ; Wed, 3 Jan 2024 11:59:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=/dmT/1w0L23PQ9GvX6VotVJeFYckBwyqTNkgbyftQZA=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To: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=1704283148; v=1; b=PO4W2ERyYRG+gbevVEOHBkVtwbOFE3uLot/8Cl1XicPYyTvorBPaW4le83xC0abQOHWKGvGK 5NH/DuUmGZsadiL463xfn2dodNlcwTsiMbIZIa/parXFf3dQqvxY1cThFYhnn/I9oQU4pb1TdcM kxrbUC533/proORr47XD1QCY= X-Received: by 127.0.0.2 with SMTP id C3gQYY7687511xvHsHKje0ou; Wed, 03 Jan 2024 03:59:08 -0800 X-Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.46]) by mx.groups.io with SMTP id smtpd.web10.15959.1704283148000548679 for ; Wed, 03 Jan 2024 03:59:08 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k+MJ5awIeQIFkII+gWWboB5SC627D+vvYD7Or+dsV9YNLSi744OH66u3OlIGPTRXWkdc17zy851K6E0uSFLMBKOpyBn5RwpZFVXCbrb2VfNPwjgnpFBmSIoaL9pmqR5jSlgBmowksfh4EaZvDV/udIoqjhm3MMYgZO+V8MDUAWnzlRY1mEXZRJXRjLUESxMOlWybf2UXLup6dyajY5c70IwJ90ubnP/vWqHWEo9dWVlIQRWj1QgiwStMDRCCQBXYhdfXNgEEHET1UWbueet5QhBBzVEb/heao/+V4dVO5l75FX8tpi4A137TncONlVtUOXQ2/3aDO/UZrg8GdeQemg== 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=lDswD06sFMuBQQlvPoh6OkZY+4buQZtW2PrcrsXEiNM=; b=GTyW6U8nQr9yENmBBdGYucVXY3FkVLUj7qOkVYGSf13p58emXvJE59aPo4aSWbGpOeqjEi0t5YcF8PRI4ot415k+6S+fFronAlJmAP4TchMbNofon4HhJDS8JrJThwezSoAbZmo80Hdz4BqVFp075VelhkKiG5JU/gwMCOlKO6nwvYnbGCJ/L89VszgSu3oaOQPg5WliuGaEROrJ2PysuNuSprG5CADcgKH6nZ9W9QqErPqUTVadRVRI4DeiBSuoUIJjvMDe4YyuzEtwaA7DV3qSpgvH3sStC82TYUhB+kx8bgkOIa05Erf++57lgQHxtkMJeP4NKyo/oZhNOL/ufg== 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 SA0PR12CA0005.namprd12.prod.outlook.com (2603:10b6:806:6f::10) by CY5PR12MB6130.namprd12.prod.outlook.com (2603:10b6:930:26::12) 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 11:59:05 +0000 X-Received: from SA2PEPF00001505.namprd04.prod.outlook.com (2603:10b6:806:6f:cafe::c7) by SA0PR12CA0005.outlook.office365.com (2603:10b6:806:6f::10) 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 11:59:05 +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 SA2PEPF00001505.mail.protection.outlook.com (10.167.242.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.9 via Frontend Transport; Wed, 3 Jan 2024 11:59:05 +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 03:58:56 -0800 X-Received: from drhqmail202.nvidia.com (10.126.190.181) 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 03:58:56 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.181) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Wed, 3 Jan 2024 03:58:56 -0800 From: "Nickle Wang via groups.io" To: Subject: [edk2-devel] [edk2-redfish-client][PATCH 00/10] RedfishClientPkg: introduce Redfish HTTP cache library Date: Wed, 3 Jan 2024 19:58:55 +0800 Message-ID: <20240103115855.61466-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: SA2PEPF00001505:EE_|CY5PR12MB6130:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bfcc8f0-31f2-4ec4-a688-08dc0c53628c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: n/BV/Hw5jYxAs1HEUZu7UuT/X0WqWNOJph4jlnU/XUji4VCTugStb5caKTn7xSJXUcKMdgIa9YXRM0OCdtXyiNBHL/0N6A6Faatp0Rthdmj25ba2fMCbqVHFcPaADbDUETJlHyhMygbvkjXOXYNPSZjUGolUf6Ickzbe+WshoUmAz5BH+D1UCHdQT0Ev5mCG0bwGV11zm4He75InlXVQXG4daEtZ3k59s7aSnZ33pWtpR9FkGZPx7Wlpdw+hGW2/UV15MZTk2y2N0H7G3r4BkgVzycHonSLaQfRasl2FVg8nQK0Y3cjDmg2tlIK6DtxEsuft/W0Vk7feurvTZJKJ9qdDzbJ1caJZaLyijZIufAuEg339+9PtA9G2pD2qrdYCpc5Uch6uxYcm46tbDOTDuKlxBs8/vrWe0IGPf4SL3sA7a+lFH1gdSvVth/0Qny+e9Y93GsjrymwedIP7rqyth09BN/wQd4srATTApI+uaojPIZSbeaHX2cbP/9DE2y1MzHl29LxIBFQClJpuhcngpqhENVLgCdEYjf1TV6lD/roEbCulDNP4tqH2a8Ieh/Lwzq5eC0Wds9rg4D5LUli5vc7tTw43qPNzveQHywmjNUHMuSTa7UDyl8uCNeCZZDvcs8m52H5EQmjczc5zmv5gzsojApFmrYoNxzgjl0a+P6+ZuWYXdFdRo0C/1is2851EMGjl2Z480uPcYeDXHD8DUsHIDrM8PnaOJuSxCnNaCUgg0+wfkyDD9MAi45+2s/4Yzq2IckEM5s6evxM9YdXohYhph1ahZaN5zyo8wWmX2j0= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2024 11:59:05.3721 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2bfcc8f0-31f2-4ec4-a688-08dc0c53628c 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: SA2PEPF00001505.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6130 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: n7u3yDfCi3XUshju4uPicDfCx7686176AA= 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=PO4W2ERy; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Introduce RedfishHttpCacheLib to improve HTTP GET performance in Redfish feature drivers. Feature drivers often query same Redfish resource=20 multiple times for different purpose. Add HTTP cache mechanism to improve the performance. An enhanced Redfish HTTP driver is under development and it will replace RedfishHttpCacheLib in the future when it is ready. Now, adding=20 RedfishHttpCacheLib is to unblock several upstream tasks. Pull request is opened here for CI testing:=20 https://github.com/tianocore/edk2-redfish-client/pull/66 Signed-off-by: Nickle Wang nicklew@nvidia.com Cc: Abner Chang abner.chang@amd.com Cc: Igor Kulchytskyy igork@ami.com Cc: Nick Ramirez nramirez@nvidia.com Nickle Wang (10): RedfishClientPkg: introduce Redfish HTTP cache library RedfishClientPkg: use HTTP cache lib RedfishClientPkg/ComputerSystemCollectionDxe: use HTTP cache lib RedfishClientPkg/ComputerSystem: use HTTP cache lib RedfishClientPkg/MemoryCollectionDxe: use HTTP cache lib RedfishClientPkg/Memory: use HTTP cache lib RedfishClientPkg/Bios: use HTTP cache lib RedfishClientPkg/EdkIIRedfishResourceConfigLib: use HTTP cache lib RedfishClientPkg/RedfishVersionLib: use HTTP cache lib RedfishClientPkg/RedfishFeatureUtilityLib: use HTTP cache lib RedfishClientPkg/RedfishClientPkg.dec | 3 +- RedfishClientPkg/RedfishClientLibs.dsc.inc | 3 +- RedfishClientPkg/RedfishClientPkg.dsc | 3 +- .../Features/Bios/v1_0_9/Dxe/BiosDxe.inf | 3 +- .../v1_5_0/Dxe/ComputerSystemDxe.inf | 3 +- .../ComputerSystemCollectionDxe.inf | 2 + .../Features/Memory/V1_7_1/Dxe/MemoryDxe.inf | 3 +- .../MemoryCollectionDxe.inf | 2 + .../EdkIIRedfishResourceConfigLib.inf | 2 + .../RedfishFeatureUtilityLib.inf | 3 +- .../RedfishHttpCacheLib.inf | 48 ++ .../RedfishVersionLib/RedfishVersionLib.inf | 3 + .../Library/RedfishFeatureUtilityLib.h | 21 +- .../Include/Library/RedfishHttpCacheLib.h | 59 ++ .../Include/RedfishCollectionCommon.h | 4 +- .../Include/RedfishResourceCommon.h | 3 +- .../RedfishFeatureUtilityInternal.h | 3 +- .../RedfishHttpCacheLibInternal.h | 63 ++ .../Features/Bios/v1_0_9/Dxe/BiosDxe.c | 80 +- .../v1_5_0/Dxe/ComputerSystemDxe.c | 70 +- .../ComputerSystemCollectionDxe.c | 24 +- .../Features/Memory/V1_7_1/Dxe/MemoryDxe.c | 70 +- .../MemoryCollectionDxe/MemoryCollectionDxe.c | 24 +- .../EdkIIRedfishResourceConfigLib.c | 6 +- .../RedfishFeatureUtilityLib.c | 67 +- .../RedfishHttpCacheLib/RedfishHttpCacheLib.c | 774 ++++++++++++++++++ .../RedfishVersionLib/RedfishVersionLib.c | 30 +- 27 files changed, 1174 insertions(+), 202 deletions(-) create mode 100644 RedfishClientPkg/Library/RedfishHttpCacheLib/RedfishHtt= pCacheLib.inf create mode 100644 RedfishClientPkg/Include/Library/RedfishHttpCacheLib.h create mode 100644 RedfishClientPkg/Library/RedfishHttpCacheLib/RedfishHtt= pCacheLibInternal.h create mode 100644 RedfishClientPkg/Library/RedfishHttpCacheLib/RedfishHtt= pCacheLib.c --=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 (#113070): https://edk2.groups.io/g/devel/message/113070 Mute This Topic: https://groups.io/mt/103500346/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-