|WARNING| [v4,3/3] test/mempool: add list walk race test

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Thu Nov 12 17:38:03 CET 2026


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

_AI Code Review_

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

Patch 2/3: mempool: fix dump of unpopulated pool

Warning: the new public API is exported as stable instead of experimental.

  RTE_EXPORT_SYMBOL(rte_mempool_is_created)
  bool
  rte_mempool_is_created(const struct rte_mempool *mp);

- New public functions must be marked `__rte_experimental` in the header and exported with `RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_mempool_is_created, 26.11)` in the .c file.
- The patch also carries `Cc: stable at dpdk.org`. Backporting it as written would add a new symbol to LTS branches, which only accept fixes with no ABI changes.
- Suggested fix: split the new API out of the fix. The internal callers (`rte_mempool_dump()` and `mempool_info_cb()`) can test the flag through a static helper in `rte_mempool.c`, and that part can be backported. Add the public experimental `rte_mempool_is_created()` in a separate patch that is not Cc'd to stable.

Patch 3/3: test/mempool: add list walk race test

Info: `list_race_populate_later` and the local `populate_later` are used purely as true/false values.

  static int list_race_populate_later;
  int populate_later = 0;

- Consider using `bool`, and `bool` for the `populate_later` parameter of `test_mempool_list_race_phase()`.

Info: if `fopen()` fails, the second phase still runs with `dump == NULL`. The test then passes without exercising `rte_mempool_dump()` / `rte_mempool_list_dump()` on unpopulated pools, which is the case patch 2 fixes.

  f = fopen(LIST_RACE_DUMP_FILE, "w");
  ret = test_mempool_list_race_phase(1, f);

- Consider failing the test, or at least logging, when `f == NULL`.

Review-Result: WARNING


More information about the test-report mailing list