Skip to content

runsc: support RDMA network devices#13124

Draft
atoniolo76 wants to merge 3 commits intogoogle:masterfrom
modal-labs:alessio/assign-rdma-netdevs
Draft

runsc: support RDMA network devices#13124
atoniolo76 wants to merge 3 commits intogoogle:masterfrom
modal-labs:alessio/assign-rdma-netdevs

Conversation

@atoniolo76
Copy link
Copy Markdown

@atoniolo76 atoniolo76 commented May 8, 2026

Moves RDMA-capable network interfaces from the host netns into the sandbox container's netns before the sandbox process is forked. This eliminates the need for CAP_SYS_ADMIN in the sentry during ibv_modify_qp on RDMA over Converged Ethernet (RoCE) machines and sandboxed network (i.e. --network=sandbox) configurations. The netdevs that own the RoCE GIDs lives directly in the sandbox netns, so kernel-side GID-to-netdev resolution succeeds without needing the host namespace. Depends on --rdmaproxy-move-netdevs flag being passed into container runtime.

Also adds ARPHRD_INFINIBAND constant and ARPHardwareInfiniBand type for InfiniBand device type support in the network stack.

Stacks on #13125.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 8, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@atoniolo76 atoniolo76 force-pushed the alessio/assign-rdma-netdevs branch from 86b0ccd to e07ce44 Compare May 8, 2026 22:10
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.

1 participant