feat: add mlnx-ofa_kernel kernel module#17780
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds NVIDIA/Mellanox OFED kernel modules (mlnx-ofa_kernel 26.04) as a kernel subpackage, providing InfiniBand, Ethernet (mlx5), RDMA, and IPoIB driver support for x86_64 and aarch64. It follows the established kernel kmod framework — phase-based .inc files (package/prep/build/install/files) injected at # AZL-KMOD-*-ANCHOR sentinels via overlays — mirroring the existing nvidia-open kmod. It also ships a -devel subpackage (headers, compat shims, Module.symvers) for out-of-tree consumers.
Changes:
- New phase-based include
kmod-mlnx-ofa_kernel.incdefining the kmod + kmod-devel subpackages and their prep/build/install/files logic (extracts the inner SRPM tarball from theMLNX_OFED_SRCbundle, builds against the just-built kernel, snapshots/restoresmodules.*, strips.BTF, stages a devel tree). kernel.comp.tomloverlays register the OFED source bundle +.inc(Source6100/6101), inject the five kmod phases at the anchors, bumpazl_pkgrelease5→6, and prepend a changelog entry; new definesmlnx_ofa_version/mlnx_ofa_release/mlnx_ofa_bundle_release.- Regenerated rendered artifacts (
kernel.spec,kernel.azl.macros,sources) and refreshedlocks/kernel.lock.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
base/comps/kernel/kmod-mlnx-ofa_kernel.inc |
New phase-based kmod include with build/install/devel-staging shell logic; header comment has two minor inaccuracies. |
base/comps/kernel/kernel.comp.toml |
Adds OFED source-file, defines, source/phase-injection overlays, release bump, and changelog entry (weekday typo). |
specs/k/kernel/kmod-mlnx-ofa_kernel.inc |
Rendered copy of the new include. |
specs/k/kernel/kernel.spec |
Rendered spec with the five phase includes and changelog entry (weekday typo mirrored). |
specs/k/kernel/kernel.azl.macros |
Generated macros: bumped azl_pkgrelease, added mlnx_ofa_* defines. |
specs/k/kernel/sources |
Adds SHA512 for the MLNX_OFED_SRC bundle. |
locks/kernel.lock |
Updated input fingerprint for the component config change. |
| # kmod-mlnx-ofa.inc — NVIDIA / Mellanox OFED kernel modules (mlnx-ofa_kernel) | ||
| # | ||
| # Phases: package, prep, build, install, files | ||
| # Activated by: setting _kmod_phase + _kmod_name globals and including this | ||
| # file from kernel.comp.toml overlays. | ||
| # | ||
| # Requires these defines/sources in kernel.spec (injected via comp.toml overlays): | ||
| # mlnx_ofa_version — driver tag (e.g. 26.04) | ||
| # mlnx_ofa_release — vendor release stamp (e.g. OFED.26.04.0.8.5.1) | ||
| # SOURCE6100 — mlnx-ofa_kernel-%{mlnx_ofa_version}.tgz |
|
|
||
| # AZL-KMOD-FILES-ANCHOR — do not remove (kmod overlays chain here) | ||
| %changelog | ||
| * Tue Jun 10 2026 Elaheh Dehghani <edehghani@microsoft.com> - 6.18.31-1.6 |
193a051 to
4b6885d
Compare
4b6885d to
cf0a796
Compare
| # AZL-KMOD-BUILD-ANCHOR""" | ||
|
|
||
| [[components.kernel.overlays]] | ||
| description = "Run mlnx-ofa_kernel kmod 'install' phase — make install_modules into /lib/modules/<KVERREL>/extra/mlnx-ofa" |
📄❌ Rendered specs are out of dateFIX: — run this and commit the result: azldev component render -a --clean-staleOr download the fix patch and apply it: gh run download 28064770816 -R microsoft/azurelinux -n rendered-specs-patch
git apply rendered-specs.patch
Files to addThese files are produced by
Files to removeThese files are in your branch but are not produced by render. Remove them.
… and 22 more file(s). |
cf0a796 to
c87c294
Compare
Adds NVIDIA/Mellanox OFED kernel modules (mlnx-ofa_kernel 26.04) as a kernel subpackage, providing InfiniBand, Ethernet (mlx5), RDMA, and IPoIB driver support. This follows the established kmod framework pattern (similar to nvidia-open).