|WARNING| net/ice: fix DCF probe failure when ACL is unavailable
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Tue Nov 10 16:57:34 CET 2026
Test-Label: ai-code-review
Test-Status: WARNING
https://dpdk.org/patch/172806
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-10
# DPDK Patch Review
## ERRORS
None identified.
## WARNINGS
**1. Missing release notes update**
The patch fixes a probe failure bug that affects user-visible behavior (DCF now succeeds probe when ACL is unavailable, where it previously failed). This should be documented in the release notes under "Fixed Issues" or "Bug Fixes" for the ice PMD.
**Suggested fix:**
Add an entry to `doc/guides/rel_notes/release_26_11.rst` (or the appropriate current release notes file):
```rst
* **net/ice: Fixed DCF probe failure when ACL is unavailable.**
Fixed an issue where DCF probe would fail if the PF refused the ACL
capability. DCF now continues initialization with the ACL engine disabled
instead of failing the entire probe.
```
## INFO
**1. Consider logging the actual error before downgrading**
The code catches any ACL init failure and treats it as "capability refused", but there could be other failure reasons. Consider logging the actual error code from `engine->init(ad)` in the WARNING message to aid debugging when the failure is due to something other than capability refusal.
```c
PMD_INIT_LOG(WARNING, "ACL engine initialization failed (ret=%d), disabling it", ret);
```
This helps distinguish "PF refused capability" from other errors like memory allocation failures or unexpected AQ command errors.
**2. Error path cleanup order**
When the ACL engine init fails, the code calls `engine->uninit(ad)` before marking it disabled. This is correct - cleanup happens before state update - but worth noting that if `uninit` were to fail or access `ad->disabled_engine_mask`, there could be an ordering issue. Current code is safe because `uninit` is called before the mask update.
## CORRECTNESS VERIFICATION
**Resource cleanup:** The patch correctly calls `engine->uninit(ad)` before continuing when ACL init fails in DCF mode. This ensures any partial initialization by the failed `init()` call is cleaned up.
**State consistency:** The `ad->disabled_engine_mask` is correctly updated in two places:
1. In `ice_dcf_init_parent_adapter()` after reset (clearing the ACL bit to allow retry)
2. In `ice_flow_init()` when ACL init fails (setting the ACL bit to mark it disabled)
**Error propagation:** The patch correctly continues the loop after handling the ACL failure (using `continue`), allowing other engines (switch, RSS) to initialize. Non-ACL engine failures still propagate the error and fail probe as before.
**Null pointer safety:** The code checks `if (engine->uninit)` before calling it, which is defensive programming in case an engine doesn't provide an uninit function.
Review-Result: WARNING
More information about the test-report
mailing list