-
Notifications
You must be signed in to change notification settings - Fork 8.3k
net_buf: change return type of net_buf_max_len as size_t #98144
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
base: main
Are you sure you want to change the base?
net_buf: change return type of net_buf_max_len as size_t #98144
Conversation
|
@MarkWangChinese since you decided to open a new PR for this instead of keeping it in the other PR (and moving everything else out) it means that this will not fulfill the review time criteria before the feature freeze. Because of that it's essential to highlight that it's an API consistency fix. You're also missing the update to the migration guide as we discussed. |
henrikbrixandersen
left a comment
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.
This needs to go through the breaking API change process, right?
IMO "breaking" is a too strong word here. The underlying storage is still |
Thanks. I want to keep the #97440 to continue talking about large size support. Maybe creating another RFC to talk about it is better? Since the "breaking API" need to be clarified too, I think this change can't be merged before feature freeze. |
|
I agree with @jhedberg here. I would not consider this a breaking change. Worst case scenario you get an explicit warning, and given that the internal storage is still 16-bit, an overflow can never happen, so there is zero risk. I would agree to merge this with an entry in the migration document. |
Change net_buf_max_len to use size_t as return value type to align with the rest of the net_buf APIs. Signed-off-by: Mark Wang <yichang.wang@nxp.com>
5da44f3 to
6fd0398
Compare
|



Change net_buf_max_len to use size_t as return value type to align with the rest of the net_buf APIs.