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

Improve AF_XDP test #846

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Improve AF_XDP test #846

wants to merge 3 commits into from

Conversation

arctic-alpaca
Copy link
Contributor

@arctic-alpaca arctic-alpaca commented Dec 1, 2023


This change is Reviewable

Copy link

netlify bot commented Dec 1, 2023

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5a85043
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/6734f90e5a014100081dcf98
😎 Deploy Preview https://deploy-preview-846--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mergify mergify bot added the test A PR that improves test cases or CI label Dec 1, 2023
// Check whether incoming packet's queue ID matches the queue ID of the socket in XSKMAP at index `queue_id`.
if SOCKS.get(queue_id) == Some(queue_id) {
// Queue ID matches, redirect to AF_XDP socket.
SOCKS.redirect(0, 0).unwrap_or(xdp_action::XDP_ABORTED)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be SOCKS.redirect(queue_id, 0)? The test will still work as veth only has one queue, but since we're after correctness, this feels like it's missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I changed it accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test A PR that improves test cases or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants