Skip to content

fix: allow RDMA on kernels built without SMC - #46

Merged
BSWANG merged 1 commit into
AliyunContainerService:mainfrom
Bowser1704:Bowser1704/fix-smc-kernel-capability
Nov 24, 2026
Merged

BSWANG merged 1 commit into
AliyunContainerService:mainfrom
Bowser1704:Bowser1704/fix-smc-kernel-capability

Conversation

@Bowser1704

@Bowser1704 Bowser1704 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

On Rocky Linux 9.8 with kernel 5.14.0-687.47.1.el9_8.x86_64, the kernel explicitly disables CONFIG_SMC. Driver installation succeeds, but the default/compat agent exits because setup unconditionally executes modprobe smc.

  • Skip SMC loading only when the kernel configuration explicitly disables it; log the unsupported capability. Preserve module-loading errors when support is enabled or unknown.
  • Advertise SMC-R capability only when SMC is available, so unsupported devices skip PNet setup.
  • Keep the existing PreStart ordering and device lookup in place; add a capability check before PNet configuration. Existing sysctl validation still rejects kernels lacking tcp2smc.

Validation:

  • Linux Go 1.22: go test ./internal/drivers ./internal/agent ./internal/deviceplugin -count=1 on this independent branch. Shell regression tests cover explicit kernel-level disablement and propagation of module-loading failure.
  • Integration testing of the combined implementation before splitting used a fresh Rocky 9.8 node, installer 1.5.11, and no manual package remediation: installation and plugin registration succeeded, SMC-R capability was omitted, a normal RDMA workload started, and an explicit SMC-R workload was rejected. The split branch has not been independently redeployed.

Independent of the RDMA-CM startup fix in #45. RDMA traffic and SMC-R connectivity were not tested.

@Bowser1704
Bowser1704 force-pushed the Bowser1704/fix-smc-kernel-capability branch from a962c2a to cb7c795 Compare November 24, 2026 02:26
@Bowser1704
Bowser1704 marked this pull request as ready for review November 24, 2026 02:32
@BSWANG
BSWANG merged commit 840d753 into AliyunContainerService:main Nov 24, 2026
3 checks passed
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