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 B6091D811AC for ; Thu, 29 Feb 2024 08:53:15 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=uijm85NPrMRLrLbUBWhBPSK8XHdJPlWC/ZCv/m9uYlE=; 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=1709196794; v=1; b=Jo0T7XMh5406ZvwWsXZkSnGGqa4mCVDUd73HN5ayUaM5aJT71yOXOpDno1NWKMCbffOMejwA HfnaAd/GKf+9RdYpIi7RW4hmgDMcQ7w/zbESlaM9bPNsFdGr8+VIorPMDynvHYqk+ZnQrZJrdxh XUwve3Mm2zxAOjeE5zNgcR20= X-Received: by 127.0.0.2 with SMTP id QFJ1YY7687511xbajzuXovVO; Thu, 29 Feb 2024 00:53:14 -0800 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.57]) by mx.groups.io with SMTP id smtpd.web11.19906.1709196793618259926 for ; Thu, 29 Feb 2024 00:53:13 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jyuAvqe/Bb7R7le7sxSrcGG9RshVTiu6aTIfghlwThZrYwDvbAdapz9a4UUZFC1YfqPnWuli3Rg+139jTD2xml5HEQ6sBcnBfVqAKGzjRCsjxsPbmCjkIwvPxsB4V1ph5d5ElFLx4K77AqWv9qVHlQ7ntqy/E7mggOpI8v9qFKaVQJ/Y9gvgD2fdzghRsAAjCVt3ymf1TOgTKtEYugazk2AkUNSKyAptVHTrYjjolnu40Sl3VlVUeZiIwM4/8jpdxgDEpX/RRCzTmlEAzIHHaGq2ki2uuBwdSFIxvT6cO3XJQfA32lZ6SfmeOW71IuNL1pjLo5JakKG8qJW4MaVz/A== 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=HIcL2ROlbHNFkMeEpt1qSPa7Cvky0XE+Ea3HxwSFQPE=; b=Jx6e73ODp9PgYplSGAwxWEyEqnz02+dTSbxU9ZNSP1STWhg8plOFh40I32uLKt4xiMe7uXnuWxzy9xuARhYvolXHW4+9pP9puI60T+j/9ZkN7MGZM54AkZARP8JS7s3TXq02xi77Oaj87nnlgdUNybwCxsYoMvMMgSRezJcEqBtMOOTieGQRdmfuNyr7wnkAZL8NdsH1FGpP+Ge8m3kYTAPv7ePrY8tALpkot4JzaR5KiDRR1zRdhF6eoYJ99DxQf1h9tlYLB4T7Sf41PscG75foqUEY1zfBBuC6EwyzJwFiTcyFqtlqeDBFX1ZSK01F4gssllWlMGSxygckJr0BXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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 BL0PR02CA0031.namprd02.prod.outlook.com (2603:10b6:207:3c::44) by DS0PR12MB8043.namprd12.prod.outlook.com (2603:10b6:8:14d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Thu, 29 Feb 2024 08:53:08 +0000 X-Received: from MN1PEPF0000F0E5.namprd04.prod.outlook.com (2603:10b6:207:3c:cafe::7f) by BL0PR02CA0031.outlook.office365.com (2603:10b6:207:3c::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.32 via Frontend Transport; Thu, 29 Feb 2024 08:53:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.117.160) by MN1PEPF0000F0E5.mail.protection.outlook.com (10.167.242.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Thu, 29 Feb 2024 08:53:07 +0000 X-Received: from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 29 Feb 2024 00:52:50 -0800 X-Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Thu, 29 Feb 2024 00:52:49 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Thu, 29 Feb 2024 00:52:48 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy Subject: [edk2-devel] [edk2-redfish-client][PATCH 00/13] use Redfish HTTP protocol Date: Thu, 29 Feb 2024 16:52:48 +0800 Message-ID: <20240229085248.111772-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: MN1PEPF0000F0E5:EE_|DS0PR12MB8043:EE_ X-MS-Office365-Filtering-Correlation-Id: 016b5dae-7ec1-4bc9-a62a-08dc3903d9bb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: 2M0ED3s9tnuA7mGZd5TgaUxBpAksSkOvMcWoBGPAzN23qSlT8s0KgkuNZWSAYj1yquResRuI1rR4f1KnBTMbTskXOseRM6UEuu9W0oe9IpHp53kZ4ltY680UE9RrD0FkNPqtdnOZ8164HvBiVgalxV91NvEX9ePPiU8nwVox8rz4cix643q5/lvwRwRj0eRr+PpV3V7u6HyYEYld/iGG6px3QqjB7w+1FrcPUBkO4U2nS1GZIocJ5K9rS/d1xxZTcsS59i3yMImOci3hqJUkHZDbtU2EIs1MOZVDdNnEgjuXhVZ0rcL81KnCZHs7IlIeLoB7FiY46BimyWALr6dG3e9N44z+9gpyWPEBm09vHOoHazehdlsGd/zYRwbI3UZi+n/RbNg1tnldy8yT1k6riw3eZLEtROxIc32dnGhz5j+WrtM27J6J0jYyABGjf76MXN4Rsivb+khC30vFqaNvDA0eDCUL+E6CoAKHOZMEhEapLIyeD0QkiBct9PiHIzs1zR715MiF6m9RSCH0pF1xO2sxZ6glkApbwYs17jNCh1uWhSUNWTg3157emZFEmq/kZAfQA//XDZTkvl8B+VRMCZkJGjDQ/BUdnHDGncgzopLOwJQ8Dn/8hhrpmgOfhJO2UBSLf4fMftT9vjgdxI/wuS/LZpMP9txdXsZu6b13HFjdmulrBsuIltigE0v6fxcQ2BEVTnW1Y0+VrcLtY647qs0hWQJJrIyeu93ZjZFFo+AFXw6ajphYmS3lVWXQWznZ X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2024 08:53:07.8531 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 016b5dae-7ec1-4bc9-a62a-08dc3903d9bb 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.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: MN1PEPF0000F0E5.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8043 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: XqJRGTcFZ4wPff60ny8fvjRAx7686176AA= 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=Jo0T7XMh; 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=pass (policy=none) header.from=groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Redfish HTTP protocol is introduced to edk2 RedfishPkg. Update=20 RedfishClientPkg to use RedfishHttpLib. And remove the use of=20 RedfishHttpCacheLib.=20 I also replace several functions from RedfishLib with the function=20 provided in RedfishHttpLib. In this way, there is no dependency on=20 RedfishLib in RedfishClientPkg. I noticed that there is false alarm in uncrustify check. When there are deleted files, uncrustiry cannot check them and trigger uncrustify failure. Pull request is created here for testing CI:=20 https://github.com/tianocore/edk2-redfish-client/pull/79 Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Nickle Wang (13): RedfishClientPkg/.github: do not run uncrustify to deleted file. RedfishClientPkg: remove RedfishHttpCacheLib RedfishClientPkg: ues RedfishHttpLib RedfishClientPkg/RedfishResourceConfigLib: ues RedfishHttpLib RedfishClientPkg/RedfishFeatureUtilityLib: ues RedfishHttpLib RedfishClientPkg/RedfishVersionLib: ues RedfishHttpLib RedfishClientPkg/BiosDxe: ues RedfishHttpLib RedfishClientPkg/BootOptionDxe: ues RedfishHttpLib RedfishClientPkg/BootOptionCollectionDxe: ues RedfishHttpLib RedfishClientPkg/ComputerSystemDxe: ues RedfishHttpLib RedfishClientPkg/ComputerSystemCollectionDxe: ues RedfishHttpLib RedfishClientPkg/MemoryDxe: ues RedfishHttpLib RedfishClientPkg/MemoryCollectionDxe: ues RedfishHttpLib RedfishClientPkg/RedfishClientPkg.dec | 1 - RedfishClientPkg/RedfishClientLibs.dsc.inc | 2 +- RedfishClientPkg/RedfishClientPkg.dsc | 1 - .../Features/Bios/v1_0_9/Dxe/BiosDxe.inf | 3 +- .../BootOption/v1_0_4/Dxe/BootOptionDxe.inf | 5 +- .../BootOptionCollectionDxe.inf | 5 +- .../v1_13_0/Dxe/ComputerSystemDxe.inf | 3 +- .../v1_5_0/Dxe/ComputerSystemDxe.inf | 3 +- .../ComputerSystemCollectionDxe.inf | 3 +- .../Features/Memory/V1_7_1/Dxe/MemoryDxe.inf | 3 +- .../MemoryCollectionDxe.inf | 3 +- .../EdkIIRedfishResourceConfigLib.inf | 2 +- .../RedfishFeatureUtilityLib.inf | 3 +- .../RedfishHttpCacheLib.inf | 48 -- .../RedfishVersionLib/RedfishVersionLib.inf | 3 +- .../Library/EdkIIRedfishResourceConfigLib.h | 4 +- .../Library/RedfishFeatureUtilityLib.h | 46 +- .../Include/Library/RedfishHttpCacheLib.h | 59 -- .../Include/RedfishCollectionCommon.h | 3 +- .../Include/RedfishResourceCommon.h | 3 +- .../RedfishFeatureUtilityInternal.h | 3 +- .../RedfishHttpCacheLibInternal.h | 63 -- .../Features/Bios/v1_0_9/Common/BiosCommon.c | 92 +-- .../Features/Bios/v1_0_9/Dxe/BiosDxe.c | 113 +-- .../v1_0_4/Common/BootOptionCommon.c | 45 +- .../BootOption/v1_0_4/Dxe/BootOptionDxe.c | 86 +- .../BootOptionCollectionDxe.c | 26 +- .../v1_13_0/Common/ComputerSystemCommon.c | 68 +- .../v1_13_0/Dxe/ComputerSystemDxe.c | 85 +- .../v1_5_0/Common/ComputerSystemCommon.c | 68 +- .../v1_5_0/Dxe/ComputerSystemDxe.c | 84 +- .../ComputerSystemCollectionDxe.c | 15 +- .../Memory/V1_7_1/Common/MemoryCommon.c | 86 +- .../Features/Memory/V1_7_1/Dxe/MemoryDxe.c | 111 +-- .../MemoryCollectionDxe/MemoryCollectionDxe.c | 15 +- .../EdkIIRedfishResourceConfigLib.c | 6 +- .../RedfishFeatureUtilityLib.c | 182 +--- .../RedfishHttpCacheLib/RedfishHttpCacheLib.c | 774 ------------------ .../RedfishVersionLib/RedfishVersionLib.c | 24 +- .github/workflows/uncrustify-check.sh | 17 +- 40 files changed, 328 insertions(+), 1838 deletions(-) delete mode 100644 RedfishClientPkg/Library/RedfishHttpCacheLib/RedfishHtt= pCacheLib.inf delete mode 100644 RedfishClientPkg/Include/Library/RedfishHttpCacheLib.h delete mode 100644 RedfishClientPkg/Library/RedfishHttpCacheLib/RedfishHtt= pCacheLibInternal.h delete 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 (#116140): https://edk2.groups.io/g/devel/message/116140 Mute This Topic: https://groups.io/mt/104640214/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-