-
Notifications
You must be signed in to change notification settings - Fork 785
xdp: support network namespaces #1138
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
base: main
Are you sure you want to change the base?
xdp: support network namespaces #1138
Conversation
WalkthroughIntroduces a Handle-based Changes
Sequence DiagramsequenceDiagram
participant Caller
participant LinkSetXdpFd as LinkSetXdpFd<br/>(package-level)
participant LinkSetXdpFdWF as LinkSetXdpFdWithFlags<br/>(package-level)
participant Handle as h.LinkSetXdpFdWithFlags<br/>(Handle method)
participant Netlink as NetlinkRequest
Caller->>LinkSetXdpFd: LinkSetXdpFd(link, fd)
LinkSetXdpFd->>LinkSetXdpFdWF: delegate with flags=0
LinkSetXdpFdWF->>Handle: call pkgHandle.LinkSetXdpFdWithFlags
Handle->>Handle: h.ensureIndex(link)
Handle->>Handle: h.newNetlinkRequest
Handle->>Handle: addXdpAttrs(req, fd, flags)
Handle->>Netlink: Execute netlink request
Netlink-->>Handle: success/error
Handle-->>LinkSetXdpFdWF: return error
LinkSetXdpFdWF-->>LinkSetXdpFd: return error
LinkSetXdpFd-->>Caller: return error
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)link_linux.go (4)
🔇 Additional comments (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Support setting XDP programs on interfaces in namespaces.
Summary by CodeRabbit
Release Notes
New Features
Refactor