Skip to content
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

Split umem race condition #2

Open
derlaft opened this issue Nov 20, 2024 · 0 comments
Open

Split umem race condition #2

derlaft opened this issue Nov 20, 2024 · 0 comments

Comments

@derlaft
Copy link

derlaft commented Nov 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant