summaryrefslogtreecommitdiffstats
path: root/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverInternal.h
diff options
context:
space:
mode:
authorAbner Chang <abner.chang@amd.com>2022-08-30 12:15:47 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-09-06 10:09:41 +0000
commitf7da805b506034f50ebf7d9c2a247a80ee8e987a (patch)
tree798b744039c8c35888da01b200faaff3cc9ca92a /RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverInternal.h
parent39596c41c82d9472f8a9f448b435e77afccc23a5 (diff)
downloadedk2-f7da805b506034f50ebf7d9c2a247a80ee8e987a.tar.gz
edk2-f7da805b506034f50ebf7d9c2a247a80ee8e987a.tar.bz2
edk2-f7da805b506034f50ebf7d9c2a247a80ee8e987a.zip
RedfishPkg/RedfishDiscoverDxe: Install protocol on each network interface
BZ 4037: Install EFI_DISCOVER_PROTOCOL on each network interface. This fixes the issue that causes the high-level Redfish driver on the network interface is stopped when: 1. EFI_DISCOVER_PROTOCOL is reinstalled on a new-found network interface, or 2. EFI_DISCOVER_PROTOCOL is stopped on the network interface other than the one which is used to communicate with Redfish service. Cc: Nickle Wang <nickle@csie.io> Cc: Igor Kulchytskyy <igork@ami.com> Signed-off-by: Abner Chang <abner.chang@amd.com> Reviewed-by: Nickle Wang <nickle@csie.io> Reviewed-by: Igor Kulchytskyy <igork@ami.com>
Diffstat (limited to 'RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverInternal.h')
-rw-r--r--RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverInternal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverInternal.h b/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverInternal.h
index 4d1319b264..04fa09e1cc 100644
--- a/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverInternal.h
+++ b/RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverInternal.h
@@ -2,6 +2,7 @@
This file defines the EFI Redfish Discover Protocol interface.
(C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
+ Copyright (c) 2022, AMD Incorporated. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
@@ -107,6 +108,12 @@ typedef struct {
///< NETWORK_INTERFACE_PROTOCOL_TYPE.
REDFISH_DISCOVER_NETWORK_INTERFACE_PROTOCOL NetworkInterfaceProtocolInfo; ///< Network interface protocol information.
EFI_HANDLE RestExHandle; ///< REST EX handle associated with this network interface.
+ //
+ // EFI_REDFISH_DISCOVER_PROTOCOL instance installed
+ // on this network interface.
+ //
+ EFI_HANDLE EfiRedfishDiscoverProtocolHandle; ///< EFI_REDFISH_DISCOVER_PROTOTOCOL instance installed
+ ///< on this network interface.
} EFI_REDFISH_DISCOVER_NETWORK_INTERFACE_INTERNAL;
//