feat: dpf: DpuFlavor changes for BF4.#3195
Conversation
Summary by CodeRabbit
WalkthroughAdds BF4-generic flavor support to the DPU flavor module: a new ChangesBF4 Flavor Support
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Caller
participant default_flavor_for
participant flavor_bf4
participant bf4_grub_params
participant get_bf4_ovs_defaults
participant default_flavor
Caller->>default_flavor_for: request flavor(deployment_type)
alt deployment_type is Bf4Generic
default_flavor_for->>flavor_bf4: build BF4 flavor
flavor_bf4->>bf4_grub_params: get grub params
flavor_bf4->>get_bf4_ovs_defaults: get OVS raw config script
flavor_bf4-->>default_flavor_for: DPUFlavor
else deployment_type is Bf3
default_flavor_for->>default_flavor: build default flavor
default_flavor-->>default_flavor_for: DPUFlavor
end
default_flavor_for-->>Caller: Result<DPUFlavor, DpfError>
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/dpf/src/flavor.rs`:
- Around line 68-79: The cleanup loop in get_bf4_ovs_defaults() is bypassing the
existing _ovs-vsctl timeout wrapper by calling ovs-vsctl directly, so update the
del-br loop to use _ovs-vsctl instead. Keep the BF4 cleanup path consistent with
the rest of the helper commands in get_bf4_ovs_defaults() so all OVSDB
operations remain bounded by the 15s timeout.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 45d78a93-f878-4c25-a2d3-f23b257b4f01
📒 Files selected for processing (1)
crates/dpf/src/flavor.rs
🔍 Container Scan Summary
Per-CVE detail lives in the per-service |
DpuFlavor changes for BF4.
Related issues
Type of Change
Breaking Changes
Testing
Additional Notes