Skip to content

net: reconsider buffer allocation #350

Open
@Dirbaio

Description

@Dirbaio

Currently net is responsible for allocating buffers from a PacketPool.

  • It doesn't play nicely at all with drivers with special needs for DMA, like
    • special alignment
    • special RAM region so DMA can read it
    • extra prepended data such as DMA descriptors
  • It is possible for drivers to hold on to packets for too long, which can make the pool full.
  • When it gets full, core can go into a hot poll loop of "try to allocate, fail, retry".
  • It requires this Poor Man's Vec that's "data + range".

Maybe allocation should be handled by the driver, like in smoltcp...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions