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

feat(s2n-quic-xdp): add umem module #1707

Merged
merged 1 commit into from
Apr 14, 2023
Merged

feat(s2n-quic-xdp): add umem module #1707

merged 1 commit into from
Apr 14, 2023

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Apr 13, 2023

Description of changes:

This PR adds the last component of the libxdp port. This is the UMEM component which holds the region of memory with actual packet data. It can be indexed with either a UmemDescriptor and RxTxDescriptor. However, this is not a safe operation since descriptors can be forged and/or copied, meaning holding one doesn't guarantee uniqueness. Luckily, this API will just be internal implementation details of the XDP IO provider so I don't think we need a completely safe abstraction (which could affect performance).

Testing:

I added a simple test making sure the indexing works. I've also got an overall integration test in another branch that shows this working.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft marked this pull request as ready for review April 14, 2023 03:42
@camshaft camshaft merged commit c2a2537 into main Apr 14, 2023
@camshaft camshaft deleted the camshaft/xsk-umem branch April 14, 2023 17:53
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

Successfully merging this pull request may close these issues.

2 participants