|WARNING| [v2,4/4] ethdev: remove module EEPROM decoding wrapper

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Fri Nov 27 22:16:29 CET 2026


Test-Label: ai-code-review
Test-Status: WARNING
https://dpdk.org/patch/173292

_AI Code Review_

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

**Patch 1/4 (transceiver: introduce module EEPROM decoding library)**

Info: `rte_transceiver_field_cb` returns `void`, so a consumer cannot report failure or stop decoding early. One existing consumer is the ethdev telemetry callback `sff_tel_add_field()`, which adds entries to a telemetry dict that can fail when full. The library cannot learn about that failure and keeps calling the callback. Since this is a new experimental API, now is the cheapest time to change it to `typedef int (*rte_transceiver_field_cb)(...)`, with a non-zero return aborting the decode and being propagated from `rte_transceiver_decode()`.

Info: in `lib/ethdev/rte_ethdev.c`, the new `#include <rte_transceiver.h>` is placed after the local `"ethdev_*.h"` includes. DPDK library headers should be grouped before application/local includes. (The include is removed again in patch 4, so this only matters for bisect-level tidiness.)

**Patch 4/4 (ethdev: remove module EEPROM decoding wrapper)**

Warning: this patch removes the public experimental API `rte_eth_module_eeprom_parse()` and the type `rte_eth_module_eeprom_field_cb` from `rte_ethdev.h`, but does not update the release notes. The only note, added in patch 1 under "New Features", states that `rte_eth_module_eeprom_parse()` "is replaced by" `rte_transceiver_decode()`, while that patch still keeps the function. The removal belongs in the "Removed Items" section of `doc/guides/rel_notes/release_27_03.rst`, and should be added in this patch, for example:

```
* ethdev: Removed the experimental function ``rte_eth_module_eeprom_parse()``
  and the type ``rte_eth_module_eeprom_field_cb``,
  use ``rte_transceiver_decode()`` from the transceiver library instead.
```

Review-Result: WARNING


More information about the test-report mailing list