-
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 v6] helper: clarify that ODP must be initialized before calling helper functions #2143
[PATCH v6] helper: clarify that ODP must be initialized before calling helper functions #2143
Conversation
ae781eb
to
4bf68c9
Compare
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. |
4bf68c9
to
e543a75
Compare
e543a75
to
b25e2cd
Compare
v4:
|
b25e2cd
to
a66ca94
Compare
v5:
|
…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 <[email protected]> Reviewed-by: Matias Elo <[email protected]> Reviewed-by: Tuomas Taipale <[email protected]> Reviewed-by: Petri Savolainen <[email protected]>
a66ca94
to
098d4c4
Compare
No description provided.