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 88C577803CF for ; Tue, 20 Feb 2024 06:41:30 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=7uzyWy74KsrWZBqnedxF/gCxpq4ScrHgbLgXmWTh5zQ=; 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=1708411289; v=1; b=fPexdpOeLELx3SLOHtY1tvNSLDbtSYq+d7hj68+asf+MF4+cufAfZGCZtd/77/ltizmt2PZY D6IMlx/7R8IAkXd4hQebdVedRKI0n0NLhEb6xW76rcM1LYLseq25ldL9qePBFt7sOiv/0Oiv4ph A9pc8Z8I2SpO/Eevqnm7fFvs= X-Received: by 127.0.0.2 with SMTP id wJIHYY7687511xuyqTdgTWGR; Mon, 19 Feb 2024 22:41:29 -0800 X-Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.71]) by mx.groups.io with SMTP id smtpd.web11.8086.1708411288386485980 for ; Mon, 19 Feb 2024 22:41:28 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ssull6ou0ogMeYDrnXqWl+ipvTGZno+Fxhu8YEcvt0n9qH51G2DihwoO6tp/+d2RuUI5mbQQbDzkux2dOZ9VwLNXxvyr3l/WpZUf60LrJ8KYCh0MWfgEBzRat3sxCWR8aXEM6+VaMZbvm/sFfkr37KqQ8X5yJQ7nTTvfqWTDdIlWaNkcbVx5CklqSc5+kGiw2IEO44N0PytXfNeJzHMhHVqgYeLtTe15mv+hnXGr1SRB4TCA4BW3DbbvE2iCQfw0eyq6wGY4rUcMkKzwC0vePOWwxY9v8uaMOxyuVJVp+u1hjWQfEomz7Y1tv0V/DqyLArv58mWulXdzVjyi+AYyZw== 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=0u8/XwjjyYe5CLldN+73adFg0V+h8OsPbAVuQ193aw8=; b=m6Ex7YsI4nJlKr9SnsLcbA7ahtYIVwglPyK4L6425rybUtoIfEV/JDQtOS9olnMQXajTInzvRxBjs/eDOUh8bBzR+p4PeG/SmF9wu1dZl/+a3mFD7j/4HYR3WHeVV9u3wd9NRYUyb5wCZBvJ6XjI8UHpdWaGJvKx5y0e37l2CeM7TSMJcY/RJzawt+mou0Kd3BV66NKk6GvHWWIOYwiz30nQTPPQfwtd7cKNdZ3uF4WQ3a+teQR7JF4MFqgqtQLNXVSXoThMuBrYd8u0N4K5iYORKh8Q/8N1QnU5VK2Cax1yvuhgGa0T2XdV+AV57PsZdHBhAaHaeArCsXfCOPJllQ== 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 SN7PR04CA0222.namprd04.prod.outlook.com (2603:10b6:806:127::17) by DM4PR12MB8475.namprd12.prod.outlook.com (2603:10b6:8:190::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.11; Tue, 20 Feb 2024 06:41:23 +0000 X-Received: from SN1PEPF0002529D.namprd05.prod.outlook.com (2603:10b6:806:127:cafe::89) by SN7PR04CA0222.outlook.office365.com (2603:10b6:806:127::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.40 via Frontend Transport; Tue, 20 Feb 2024 06:41:23 +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 SN1PEPF0002529D.mail.protection.outlook.com (10.167.242.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Tue, 20 Feb 2024 06:41:23 +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; Mon, 19 Feb 2024 22:41: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.1258.12; Mon, 19 Feb 2024 22:41: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.1258.12 via Frontend Transport; Mon, 19 Feb 2024 22:41:05 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy , "Nick Ramirez" Subject: [edk2-devel] [PATCH 0/6] Introduce Redfish http protocol Date: Tue, 20 Feb 2024 14:41:05 +0800 Message-ID: <20240220064105.28201-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: SN1PEPF0002529D:EE_|DM4PR12MB8475:EE_ X-MS-Office365-Filtering-Correlation-Id: 5b5a308b-cbc9-46d3-8345-08dc31def491 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: fqNmil2O8WBSWO1FlETHMbqm+9OtjjjYOhOmDnXtiDHMjtEEkMGxTTnTPrxzNxtDOHWfuFocecLJQvCb7dsbygVSQKIm3z7vDMXBNRUB4DYSpGeuIPLbBu+tl4ElfYZ2RG0z+U4WhP5Hd8YFvp6Av12mM6JNzrkvJlfqatuVW73pem/EfDtwQawfhCCDIIALvjNmWpL9pbckUNzMEw8S1nCb9Vg4Frgx5cec9QAkwazXY1JVvmwEiQc2/veB0PgHwWY4P5+CRG90H/M/ze0QmrPxCE1rFI6YWH+m+ZWpvmDCM02lj6GB50jVtotH13Vc3bu/306FH/Yh/yd9RlzcrS8d6Uhh4QKgy4IRFFiffl+mnY9+M1lOAA0YN+6c8adbBePJJccHpvF+nvkeN9IChZsmDiaw6JG+EdEtrvfUmMkwZ7LdxWg+IrhEZBm8jDD0y6u9HzWExhZxzwxqpUAvDTGYK3xExtOQ2QDZXVXS1MkW9ijHvc96rLcLKD6rgOGT6LmU/yxwP03W0KG+d/ofUMwW9yUFOIckxp/XCF822Wyvwq/Q46nHu5EO3LXKoK9b0KzZ6mqkwgMt4yEKxt9NpkWJW6IpfjULXZzpuc+A3UVz1BmLmoZpr330NvrnQTWPZ30gdqkC9CtudYuJiAm8KFT+Vsmc0MAH13moEZu/ir4mxFdAXplAcu5TWlBM7VD/WLln5cQA+SjUQjsSrO718g== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 06:41:23.4195 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5b5a308b-cbc9-46d3-8345-08dc31def491 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: SN1PEPF0002529D.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB8475 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: mQxiXbn3nQx1UxNRer2B7t1xx7686176AA= 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=fPexdpOe; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); 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 This patch series introduce Redfish HTTP protocol to RedfishPkg.=20 This is to improve Redfish performance and communication stability=20 between BIOS and Redfish service. Two big functions are introduced: 1) HTTP cache mechanism is implemented to reduce the number of=20 communiocation between BIOS and BMC.=20 2) HTTP request retry mechanism is implemented to handle communication=20 failure. With retry mechanism, Redfish feature driver can finish its job=20 as best as possible. Several libraries are updated to fix build issues. Pull request is created: https://github.com/tianocore/edk2/pull/5348 Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez Nickle Wang (6): RedfishPkg: introduce Redfish HTTP protocol RedfishPkg: implement Redfish HTTP protocol RedfishPkg: introduce RedfishHttpLib RedfishPkg/RedfishLib: include RedfishServiceData.h RedfishPkg/RedfishDebugLib: use RedfishHttpLib RedfishPkg/RedfishCrtLib: fix unresolved external symbol issue RedfishPkg/RedfishPkg.dec | 32 +- RedfishPkg/RedfishComponents.dsc.inc | 3 +- RedfishPkg/RedfishLibs.dsc.inc | 3 +- RedfishPkg/RedfishPkg.dsc | 5 +- .../RedfishDebugLib/RedfishDebugLib.inf | 4 +- .../Library/RedfishHttpLib/RedfishHttpLib.inf | 43 + .../RedfishCrtLib/RedfishCrtLib.inf | 7 +- RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.inf | 73 + RedfishPkg/Include/Library/RedfishDebugLib.h | 2 +- RedfishPkg/Include/Library/RedfishHttpLib.h | 326 ++++ RedfishPkg/Include/Library/RedfishLib.h | 17 +- .../Protocol/EdkIIRedfishHttpProtocol.h | 308 ++++ RedfishPkg/Include/RedfishServiceData.h | 43 + RedfishPkg/RedfishHttpDxe/RedfishHttpData.h | 256 ++++ RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.h | 44 + .../RedfishHttpDxe/RedfishHttpOperation.h | 76 + .../Library/RedfishDebugLib/RedfishDebugLib.c | 1 + .../Library/RedfishHttpLib/RedfishHttpLib.c | 585 +++++++ .../RedfishCrtLib/Ia32/MathFtol.c | 37 + RedfishPkg/RedfishHttpDxe/RedfishHttpData.c | 667 ++++++++ RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.c | 1344 +++++++++++++++++ .../RedfishHttpDxe/RedfishHttpOperation.c | 693 +++++++++ RedfishPkg/Redfish.fdf.inc | 3 +- RedfishPkg/RedfishPkg.ci.yaml | 2 + 24 files changed, 4549 insertions(+), 25 deletions(-) create mode 100644 RedfishPkg/Library/RedfishHttpLib/RedfishHttpLib.inf create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.inf create mode 100644 RedfishPkg/Include/Library/RedfishHttpLib.h create mode 100644 RedfishPkg/Include/Protocol/EdkIIRedfishHttpProtocol.h create mode 100644 RedfishPkg/Include/RedfishServiceData.h create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpData.h create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.h create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpOperation.h create mode 100644 RedfishPkg/Library/RedfishHttpLib/RedfishHttpLib.c create mode 100644 RedfishPkg/PrivateLibrary/RedfishCrtLib/Ia32/MathFtol.c create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpData.c create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpDxe.c create mode 100644 RedfishPkg/RedfishHttpDxe/RedfishHttpOperation.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 (#115625): https://edk2.groups.io/g/devel/message/115625 Mute This Topic: https://groups.io/mt/104463401/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-