summaryrefslogtreecommitdiffstats
path: root/RedfishPkg/Include/Library/RestExLib.h
diff options
context:
space:
mode:
authorVu Nguyen <vunguyen@os.amperecomputing.com>2021-06-28 17:26:55 +0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-05-08 13:12:01 +0000
commita1f6485a9b14382d809299e435c65cbe139abded (patch)
tree0ff24a5df03f1df1d425ccde22ec49396a7fe01e /RedfishPkg/Include/Library/RestExLib.h
parent05762bd2e0f695e1496e37e1613297be47136db1 (diff)
downloadedk2-a1f6485a9b14382d809299e435c65cbe139abded.tar.gz
edk2-a1f6485a9b14382d809299e435c65cbe139abded.tar.bz2
edk2-a1f6485a9b14382d809299e435c65cbe139abded.zip
RedfishPkg: Create RestEx child on selected interface
When a MAC address matching interface is found, a RestEx child will be created to provide the Redfish communication on that interface. Currently, It will try to locate all RestEx binding services and choose the first satisfied instance without taking care about current selected interface. This might raise an issue on the system with multiple network devices that the RestEx child was installed on wrong interface. Signed-off-by: Minh Nguyen <minhnguyen1@os.amperecomputing.com> Cc: Abner Chang <abner.chang@amd.com> Cc: Igor Kulchytskyy <igork@ami.com> Cc: Nick Ramirez <nramirez@nvidia.com> Reviewed-by: Abner Chang <Abner.Chang@amd.com>
Diffstat (limited to 'RedfishPkg/Include/Library/RestExLib.h')
-rw-r--r--RedfishPkg/Include/Library/RestExLib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/RedfishPkg/Include/Library/RestExLib.h b/RedfishPkg/Include/Library/RestExLib.h
index bc4e4ca6ca..2c32c3684c 100644
--- a/RedfishPkg/Include/Library/RestExLib.h
+++ b/RedfishPkg/Include/Library/RestExLib.h
@@ -2,6 +2,7 @@
This library provides help functions for REST EX Protocol.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
+ Copyright (c) 2023, Ampere Computing LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -20,6 +21,7 @@
This function allows the caller to create child handle for specific
REST server.
+ @param[in] Controller The controller handle used of selected interface.
@param[in] Image The image handle used to open service.
@param[in] AccessMode Access mode of REST server.
@param[in] ConfigType Underlying configuration to communicate with REST server.
@@ -32,6 +34,7 @@
**/
EFI_STATUS
RestExLibCreateChild (
+ IN EFI_HANDLE Controller,
IN EFI_HANDLE Image,
IN EFI_REST_EX_SERVICE_ACCESS_MODE AccessMode,
IN EFI_REST_EX_CONFIG_TYPE ConfigType,