Repository navigation
feat: support pre-provisioned eRDMA on Lingjun nodes - #48
Merged
BSWANG merged 1 commit intoNov 24, 2026
Merged
Conversation
Bowser1704
force-pushed
the
Bowser1704/lingjun-erdma
branch
from
November 24, 2026 02:16
27cd093 to
e34866d
Compare
Bowser1704
marked this pull request as ready for review
November 24, 2026 02:27
BSWANG
approved these changes
Nov 24, 2026
Bowser1704
force-pushed
the
Bowser1704/lingjun-erdma
branch
from
November 24, 2026 03:10
e34866d to
80541f0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and behavior
Lingjun nodes use their
e01-*node name as providerID rather than an ECS instance ID. The controller previously fell back to InternalIP lookup and could not discover their pre-provisioned eRDMA ENIs.Identify Lingjun nodes by their worker label or e01-* providerID, query existing ENIs using providerID as the cloud instance ID, and create the usual ERdmaDevice CR named after the Kubernetes node. Node names and cloud identities are independent; empty providerID fails before any ENI query. Discovery does not provision new ENIs or query ECS instance capacity/jumbo-frame settings. After discovery, use the existing common ENI reconciliation and Terway exclusion/instance-id tagging; no Lingjun-specific CR label or read-only reconciliation path. Configured ENIs become Ready; abnormal states use ordinary attach/configuration handling. Do not add creator tags to platform-provisioned ENIs. Agent driver setup is unchanged from ECS: reuse installed drivers or install missing ones, and apply profile module configuration. Secondary-NIC configuration/activation is retained.
Driver probing (the existing eRDMA MAC-to-GUID matching), installation and device-plugin allocation are unchanged from main. Generic netdev/GID mapping and BF3/mlx5 compatibility are deferred to a separate change with hardware validation. Ordinary ECS provisioning is unchanged.
Validation
ib_write_bwchecks on erdma_0/1. These hardware tests used the earlier Lingjun driver-setup skip; they do not validate the subsequently restored common driver/module-configuration path on Lingjun. ContainerOS original agent and all canary resources were restored/cleaned up.TestControllersscaffold was excluded; generic e2e did not run successfully in the Go container because kubectl was unavailable.Scope and limitations
Requires existing attached HighPerformance ENIs and regular eRDMA on Lingjun. BF3/mlx5 support is deferred; this change keeps existing MAC-to-GUID probing unchanged. HostNetwork verbs on regular eRDMA is the verified communication mode; ordinary Pod-network zero GIDs/RTR failure remains an expected boundary. SMC-R transport, GPU/GDR and RDMA-CM connection establishment are not claimed by these tests. #46 remains a separate change. localERIDiscovery is unchanged and is not needed for this CR-based flow.