-
Notifications
You must be signed in to change notification settings - Fork 1
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
add mctp userspace lib support #76
Conversation
parvathib
commented
Jan 3, 2025
- Adds the MCTP user library API and includes a function in the example_app to test dummy SPDM messages in loopback mode.
- Define a separate instance to the secure SPDM.
- Add Alarm in the Mctp Mux layer to record the message reception time. (This is not propagated to the user yet)
- Pass the test flags to application build to filter out the code execution.
@@ -4,5 +4,5 @@ | |||
|
|||
pub mod flash_partition; | |||
pub mod mctp_driver; | |||
pub mod mctp_mux; | |||
pub mod mock_mctp; |
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.
shouldn't this be under a feature flag to prevent inclusion in release?
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.
The test code that creates this mock instance (this is under feature flag test-mctp-capsule-loopback
) is compiled out in the release builds. The release binary should not have this included.
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.
I think the module inclusion also needs to be under feature flag
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.
added it under feature flag
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.
LGTM other than Vishal's comment that it would be good to put the mod mock_mctp;
under a #[cfg(..)]
to double-ensure that it is not included in the released binary.