-
Notifications
You must be signed in to change notification settings - Fork 56
Use bbqueue from crates.io #71
Comments
Works around the issues in #71
8b62569 uses a fork that includes jamesmunns/bbqueue#33. We should move back to the upstream repo or a crates.io release as soon as we can. |
@jonas-schievink is this something that would be fixed by jamesmunns/bbqueue#37? Or do you need one of the proposed grants at jamesmunns/bbqueue#38, maybe |
@jamesmunns Does |
Ah no, good catch! It works as documented at the module level (see https://docs.rs/bbqueue/0.4.0-alpha5/bbqueue/atomic/struct.Producer.html), but it is a little vague at the function level, which I will be fixing. For reference:
I think you actually want |
I need to come up with a consistent naming scheme, but in general:
|
The only remaining use of bbqueue is in the logging utilities, which should be fine with getting a small buffer first, and then wrap around and get another buffer. It will only "fail" (it will consider data to be lost) if the function returns |
I also plan to offer split grants in the future, which will give you the buf at the start and end, so you can decide at once if there is enough space, but I haven't put any detailed design or dev into that, planning on doing that post 0.4.0. |
Fixed by #100 |
As discovered in #64, bbqueue's
grant_max
doesn't work as documented (jamesmunns/bbqueue#29), so our usage of it is wrong and can lead to packet processing stalling.This either needs a
documentationfix and additional methods in bbqueue, or we should switch to a different queue. Ideally, that queue would also support thumbv6 while still having efficient batch operations.The text was updated successfully, but these errors were encountered: