mctpd: add AssignEndpointPreferred for preferred EID#158
Open
HenryWuQuanta wants to merge 1 commit into
Open
Conversation
a8724a9 to
65b1357
Compare
Add AssignEndpointPreferred to allow callers to request a preferred EID for an endpoint. mctpd checks whether the requested EID is available before assigning it to the device. If the preferred EID is already in use, mctpd falls back to dynamic EID assignment. This is used by the MCTP reactor flow, where dbus-sensors reads the MCTPEndpointID property from Entity Manager and passes it to mctpd as the preferred EID. Update the README, mctpd documentation, endpoint recovery documentation, and tests for the preferred EID assignment flow. Related: https://gerrit.openbmc.org/c/openbmc/entity-manager/+/91151 https://gerrit.openbmc.org/c/openbmc/dbus-sensors/+/91188 Signed-off-by: Henry Wu <Henry_Wu@quantatw.com>
65b1357 to
c7964ff
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add AssignEndpointPreferred to allow MCTP reactor to request a preferred EID for an endpoint.
mctpd checks whether the requested EID is available before assigning it to the device. The policy for choosing preferred EID assignment or dynamic EID assignment is handled by MCTP reactor.
This is used with the MCTP reactor flow that reads the MCTPEndpointID property from Entity Manager and decides whether to request the configured EID or fall back to dynamic EID assignment.
Update the README, mctpd documentation, endpoint recovery documentation, and unit tests for the preferred EID assignment flow.
Related:
https://gerrit.openbmc.org/c/openbmc/entity-manager/+/91151
https://gerrit.openbmc.org/c/openbmc/dbus-sensors/+/91188