|SUCCESS| [v2] net/axgbe: retry transient SFP I2C read failures

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Fri Nov 20 15:36:49 CET 2026


Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/173056

_AI Code Review_

=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-20

**Info**

1. `sfp_i2c_settled` is a pure true/false flag but is declared as `unsigned int`:

   ```
   +	unsigned int sfp_i2c_settled;
   ```

   It is passed to a `bool` parameter (`axgbe_i2c_retryable(int ret, bool settled)`) and assigned `1`. Declaring it `bool` and assigning `true` would make the intent explicit. The neighbouring `sfp_*` fields use `unsigned int`, so this is minor.

2. The added `-EAGAIN` path now sleeps 2 ms before retrying, where it previously retried immediately:

   ```
   +		if (axgbe_i2c_retryable(ret, phy_data->sfp_i2c_settled) && retry--) {
   +			rte_delay_us_sleep(AXGBE_I2C_RETRY_DELAY_US);
   ```

   This is a behaviour change for arbitration-loss retries after the bus has settled. The commit log does not mention it. If it is intended, a word in the log would help. Otherwise, the delay could be applied only for the `-ENOTCONN`/`-ETIMEDOUT` cases.

3. The v2 changelog says the in-code comment was cut, but the patch still adds a six-line block comment above `axgbe_i2c_retryable()`. That comment largely restates the commit message. Consider trimming it to one line, or dropping it as the earlier review requested.

Review-Result: CLEAN


More information about the test-report mailing list