-
Notifications
You must be signed in to change notification settings - Fork 20
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
Puplic MCTP Medium Physical Address to MCTP Endpoint D-Bus Object path #52
Comments
By DSP0236 v1.3.3 Figure 9 this statement isn't necessarily true:
The one EID can be assigned to multiple ports on a device, in which case the interface selection must be done by the kernel route table. Given that I think that we need to adjust your proposal a little. What thoughts do you have on accommodating multiple interfaces for a given EID? |
In that case, as my opinion, the |
So changing the address type isn't feasible without changing the object version. I think it's something we should try to avoid. Bear in mind that the object path is keyed by the EID, so using an array of addresses in the interface feels like it's shoe-horning the information into places its not designed to belong. Further, if one EID is mapped across multiple ports on a device, exposing this information in userspace isn't useful anyway as it shouldn't be the responsibility of userspace to make the choice. I think we need something more generic, possibly:
On this we can have one interface describing the network in which the device is participating, and another interface describing its physical ports, their properties, and the EID associated with each port. That way you can use the current known EID to look up the endpoint in mctpd, pull the UUID from the |
I think we need trims some character from UUID to make it compatible with D-Bus object path requirement. Right?
Do you mean the interface like below?
Do you have any idea about the Physical ports interface.
So the device has 2 ports:
|
There is no limit on object path length, but we would need to comply with the object name requirements, and format the UUID accordingly (mainly: no
Probably not. We would want to describe the connectivity to a device, rather than a set of network numbers (and then EIDs/hardware addresses elsewhere). We may be able to do that with an object path reference, but can discuss with Andrew on the design there.
I think we're missing part of the requirements here: how are you discovering those devices in the first place? If we just have the Medium Type available on the endpoint object, you should then have all you need to choose an endpoint, no? Overall, I think we need to make some overall design choices on whether we would "prefer" the split vs. unified EID approach here, and target our design decisions accordingly (of course, we'd still want to support both approaches regardless). I'll have a think about that and update shortly. |
But it's a matter of finding the set of EIDs associated with a specific device, right? If we don't have an index object such as something addressed by the UUID, then we have to iterate all the EID objects to correlate the UUIDs to find the faster interface. |
There are two ways the mctpd can discovery the device.
It is not enough because we can't map the medium type of one EID. The other things, we need to concern is the name of endpoint (Terminus name) which is required to create the PLDM sensors. Currently, the terminus name can come from PLDM "Overall system entity AUX name PDR" in
Yah, please things about that. In the current design, only |
pldmd
can support multiple MCTP-Binding interface at the same time. It can also choose of interface with highest speed. Sopldmd
need to know the medium type to decide which medium interface should it use to communicate with EP when there are many medium interfaces.Type
inau.com.codeconstruct.MCTP.Endpoint1
with data type asbyte
to define the medium type asTable 2 – MCTP physical medium identifiers
in DSP0239 V1.3.0Address
inau.com.codeconstruct.MCTP.Endpoint1
with data type as string or byte array asTable 27 – Routing Table Entry format
in DSP0236 V1.3.0. Depends on the MCTP binding type the size of thisAddress
property can different. Maybe we can addAddressSize
property to identify the byte size of address.Table 27 – Routing Table Entry format
, theport number
should also be public to MCTP Endpoint D-Bus object path. When the EP is bridge we need toidentify a particular bus connection that the physical address for the entry is defined under
that bridge.The text was updated successfully, but these errors were encountered: