Skip to content
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

net/bufpool: Call init automatically on alloc #121

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

wengzhe
Copy link
Member

@wengzhe wengzhe commented Jan 3, 2025

Summary

Call init automatically on alloc for net bufpool.

Note: Initialize function of protocols (tcp, udp, pkt, etc.) are kept empty.

Impact

Init of buffers.

Testing

Together with cmocka cases.

net/utils/utils.h Outdated Show resolved Hide resolved
net/utils/utils.h Show resolved Hide resolved
net/utils/utils.h Outdated Show resolved Hide resolved
Note: Initialize function of protocols (tcp, udp, pkt, etc.) are kept empty.

Signed-off-by: Zhe Weng <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit e9f9543 into open-vela:dev Jan 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants