-
Notifications
You must be signed in to change notification settings - Fork 106
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
FeatureRequest: Async support for send/receive
payload
#2480
Comments
send/receive
payload
I checked the provided links. |
We need some one validate and confirm that split is working, before we move too far. @PrithviAPai , can you help to try the new API? |
Hi @jyao1, About my setup: Findings:
|
@steven-bellock @jyao1 can this be supported ? |
I think what you want is a library that completely removes the transport portion. So in this case the Integrator
In particular the Integrator has full ownership over 2 and 3. If so then yes, that's doable. @JakubLedworowski does that work for you as well? |
yes, existing library can work as it is till encode/decode transport messages. Post which we can make sure the integrator takes care of sending and receiving the API. |
@steven-bellock yes, that approach works for me as long as the integrator has the option to use the transport layer methods directly (eg. libspdm_transport_mctp_encode_message) to avoid code duplication as it is already implemented in libspdm. So, in case the integrator wants to use the new approach while reusing transport layer the flow would look like this:
|
@steven-bellock up to transport layer encoding/decoding can be as we have currently. But, integrator need option to send/receive without having callbacks called for the same. |
@steven-bellock can you please tell us some rough timelines when this will be available so that we can plan our deliverables accordingly ? |
If it's at the normal pace of things maybe a year. We are focused on SPDM 1.3 features right now and it's taking a (long) while. That can obviously be accelerated if you, or someone else, implements the feature. |
@steven-bellock please suggest if this looks good.
|
I'm interested in this feature as well. |
Currently in SPDM Requester case libspdm triggers send callback registered when it has payload to send.
Based on return value of the callback the receive callback registered is called subsequently.
In many applications(example: OpenBMC etc) async way of request/response is implemented at transport layer(mctp) where request is sent and once response is received it is handled.
The current implementation of libspdm requires response to be received before returning from send callback.
Can we have async way of handling in SPDM Requester case ?
application will call for example:
process_received_message
provided by libspdm to process the response for all the SPDM Request messageThanks,
Prithvi A Pai
The text was updated successfully, but these errors were encountered: