Skip to content

Split umem race condition #2

Description

@derlaft

asavie/xdp@b4f19b9 Introduces a split umem, one half for rx, one half for tx.

This also changes how free descriptors are marked: instead of having one free list, there's now two.

However, this creates a problem: received descriptors can be sent back directly with Transmit. In this case, they are only marked as txFree and GetDescs can return them before their transmission is complete. .

Unless I'm missing something this creates a race condition and might damage sent packets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions