Closed jhedberg closed 1 month ago
sys_buf or zbuf, etc... seems like a legitimate change indeed.
Can we revive this please? @jhedberg @carlescufi What needs to be done here?
I support that. I used net_buf
on the zbus implementation. It saved a lot of work for me.
+1 to sys_buf :)
from wg meeting:
Actions:
Good initiative!
There is also an opportunity to use net_buf in IPC for a zero-copy data plane.
@jhedberg do we want to move this forward?
@jhedberg do we want to move this forward?
I am actually working on a PR for this just now.
Networking buffers is a separate subsystem with no dependency on networking itself. This implementation was originally created for Bluetooth and called bt_buf back then. Once work started to create a networking stack for Zephyr it made sense to reuse the buffer implementation, but Networking depending on something called bt_buf didn't feel right. Consequently, the implementation was renamed to net_buf and moved under net/ due to its namespace.
There are a couple of issues with the current situation:
It would therefore make sense to consider renaming the subsystem and API to something more generic, and the natural choice for that would be sys_buf (based on current Zephyr naming guidelines).