Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support get static eid config from entity manager
The mctpd will try to find the configuration interface "xyz.openbmc_project.Configuration.MCTPEndpoint" and parse the data. Then it will send get EID command to target device. If we the get the response, we publish the EID on the D-Bus. Changes: - Scan D-Bus for static EIDs config. - Add a method that rescans entity-manager config for EIDs. - Add matches for monitoring InterfaceAdded and InterfaceRemoved from entity-manger. - Add association definition interface for EIDs that came from entity-manager config. Test log: - reboot and check MCTP D-Bus path root@bmc:~# reboot root@bmc:~# busctl tree xyz.openbmc_project.MCTP `- /xyz `- /xyz/openbmc_project `- /xyz/openbmc_project/mctp `- /xyz/openbmc_project/mctp/1 |- /xyz/openbmc_project/mctp/1/60 `- /xyz/openbmc_project/mctp/1/8 root@bmc:~# pldmtool base GetTID -m 60 { "Response": 134 } Signed-off-by: PeterHo-wiwynn <[email protected]>
- Loading branch information