-
Notifications
You must be signed in to change notification settings - Fork 134
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
[PATCH v2] helper: clarify that ODP must be initialized before calling helper functions #2143
base: master
Are you sure you want to change the base?
[PATCH v2] helper: clarify that ODP must be initialized before calling helper functions #2143
Conversation
ae781eb
to
4bf68c9
Compare
…nctions Explicitly state that ODP must be initialized before calling helper functions. Document exceptions to this rule individually. This has been the intended interpretation of the helper API all along, so this is only a clarification, not an API change. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
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 guess technically we could also allow odph_ipsec_auth_icv_len_default()
.
Yes, and also all functions in stress.h. But I've allowed here only the functions that we are currently calling before initialization. Another option would be to only allow odph_parse_options(), odph_options() and maybe odph_strcpy(), and fix the rest so that they would be called only after initialization. |
Only allowing the two option functions, the copy function (and the log macros so logging errors in option error handling would not become cumbersome?) sounds good to me. Have to discuss this with others. |
* ODP must be initialized before calling helper functions, unless stated | ||
* otherwise. Pre-processor macros may be invoked independently of ODP | ||
* initialization. |
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.
As discussed, this same clause could also be added to some helper API header (for example helper/include/odp/helper/odph_api.h
).
No description provided.