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

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Fri Nov 20 12:46:25 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. The new `sfp_i2c_settled` flag is set once and never cleared.

   The patch only ever writes the flag here:

       phy_data->sfp_i2c_settled = 1;

   Nothing in the patch resets it when the SFP module changes (the `sfp_changed` / `sfp_mod_absent` handling). After a hot-swap, the first accesses to the newly inserted module still get only the `-EAGAIN` retry. A newly inserted module may need the same settle window as the first access after `phy_init()`.

   If that case matters, clear the flag where the driver detects a module change. Otherwise, a short note that the extended retry deliberately applies only after `phy_init()` would make the intent explicit.

2. Use `bool` for the new flag.

   It is a pure true/false value, so it could be declared `bool` and assigned `true`. That would match the `bool settled` parameter of `axgbe_i2c_retryable()`. The surrounding fields use `unsigned int`, so this is optional.

Review-Result: CLEAN


More information about the test-report mailing list