-
Notifications
You must be signed in to change notification settings - Fork 13
RedfishClientPkg: Redfish task service support #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Introduce new library to handle Redfish message. This library associate Redfish message to corresponding Redfish URI. When Redfish resource is ready for provisioning, driver can get all Redfish messages associated with this Redfish URI and add them into provision data. Signed-off-by: Nickle Wang <[email protected]>
…tate Introduce new library of updating Redfish task state to BMC. The interface between host and BMC for updating Redfish task state is not defined in industrial specification. Since this depends on platform BMC implementation, this library is created for platform owner to handle this part. Signed-off-by: Nickle Wang <[email protected]>
72422bd to
269641a
Compare
Add new library to read Redfish protocol feature attribute. Redfish feature driver calls this library to get protocol feature support on BMC. Signed-off-by: Nickle Wang <[email protected]>
fecbecc to
62a3d74
Compare
… task Introduce new driver to handle Redfish task service. This driver reads Redfish task service and dispatch task to registered Redfish driver. When Redfish driver is done with his job, this driver helps to return task result back to BMC. Signed-off-by: Nickle Wang <[email protected]>
Add special handing for Redfish task service because task needs to be called before Redfish feature driver. The request from Redfish task may change the BIOS configuration so it has to be handled first. Signed-off-by: Nickle Wang <[email protected]>
Enable Redfish task support by adding RedfishTaskDxe driver, Redfish message library and Redfish task library to RedfishClientPkg. Signed-off-by: Nickle Wang <[email protected]>
62a3d74 to
5881f20
Compare
| while (!IsNull (&Private->RegisteredList, Node)) { | ||
| Entry = REDFISH_TASK_REGISTERED_ENTRY_FROM_LIST (Node); | ||
|
|
||
| if ((StrCmp (Entry->ListenUri, Uri) == 0) && (Entry->Context == Context)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to check Context value at first?
| JsonValueFree (TaskCollection); | ||
| } | ||
|
|
||
| return Status; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicklela, there is a compilation warning:
RedfishClientPkg/RedfishTaskServiceDxe/RedfishTaskServiceDxe.c:496:10: error: 'Status' may be used uninitialized in this function [-Werror=maybe-uninitialized]
return Status;
^~~~~~
cc1: all warnings being treated as errors.
|
I need more time to create flow diagram and explain how Redfish task works. So I convert this pull request to draft for now. |
Description
Introduce driver and library to support Redfish task service.
How This Was Tested
Build pass on RedfishClientPkg.