Add BlueField-4 support and tolerate missing BFB versions#293
Merged
almaslennikov merged 1 commit intonetwork-operator-26.1.xfrom Feb 13, 2026
Merged
Add BlueField-4 support and tolerate missing BFB versions#293almaslennikov merged 1 commit intonetwork-operator-26.1.xfrom
almaslennikov merged 1 commit intonetwork-operator-26.1.xfrom
Conversation
GetFWVersionsFromBFB previously errored if any individual BF version (BF2 or BF3) was missing from the BFB info-v0 file. BFB files may legitimately contain only a subset of versions, so the function now only errors when no versions are found at all. Also adds BF4 (a2df) to the version extraction loop and to IsBlueFieldDevice(). Signed-off-by: Alexander Maslennikov <amaslennikov@nvidia.com> (cherry picked from commit 0e4f210)
Greptile OverviewGreptile SummaryAdds BlueField-4 device support and improves firmware version extraction from BFB files to tolerate missing individual versions. Key changes:
Issues found:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Caller
participant GetFWVersionsFromBFB
participant mlx-mkbfb
participant AWK as AWK Commands
participant FileSystem
Caller->>GetFWVersionsFromBFB: Request versions from BFB
GetFWVersionsFromBFB->>mlx-mkbfb: Extract info-v0 from BFB
mlx-mkbfb->>FileSystem: Write dump-info-v0
GetFWVersionsFromBFB->>FileSystem: Check dump-info-v0 exists
Note over GetFWVersionsFromBFB: Pre-existing bug: continues even if missing
loop For each BF version (BF2, BF3, BF4)
GetFWVersionsFromBFB->>AWK: Extract version for device
alt Version found
AWK-->>GetFWVersionsFromBFB: Return version string
GetFWVersionsFromBFB->>GetFWVersionsFromBFB: Add to versions map
else Version missing or error
AWK-->>GetFWVersionsFromBFB: Empty or error
Note over GetFWVersionsFromBFB: Skip and continue (new behavior)
end
end
alt At least one version found
GetFWVersionsFromBFB-->>Caller: Return versions map
else No versions found
GetFWVersionsFromBFB-->>Caller: Error: no versions found
end
Last reviewed commit: 821f332 |
Additional Comments (1)
|
rollandf
approved these changes
Feb 13, 2026
776aefa
into
network-operator-26.1.x
10 of 14 checks passed
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.
GetFWVersionsFromBFB previously errored if any individual BF version (BF2 or BF3) was missing from the BFB info-v0 file. BFB files may legitimately contain only a subset of versions, so the function now only errors when no versions are found at all. Also adds BF4 (a2df) to the version extraction loop and to IsBlueFieldDevice().
(cherry picked from commit 0e4f210)