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

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Thu Nov 12 18:59:10 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: `rte_mempool_is_created()` is a new public API exported as stable rather than 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)`. If it is deliberately stable so the fix can be backported, say so in the commit message so the maintainer can decide.

Warning: this patch is tagged `Cc: stable at dpdk.org` but adds a new exported symbol. Stable/LTS branches do not accept new API or ABI additions, so the patch cannot be backported as written. Consider splitting it:
- a backportable fix that tests `RTE_MEMPOOL_F_POOL_CREATED` internally in `rte_mempool_dump()` and `mempool_info_cb()`, with the atomic flag update;
- a separate, non-stable patch that adds the public `rte_mempool_is_created()` helper and the `rte_mempool_walk()` documentation.

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

Info: if `fopen(LIST_RACE_DUMP_FILE, "w")` fails, phase 2 still runs with `list_race_dump == NULL`. The `rte_mempool_dump()` / `rte_mempool_list_dump()` coverage on unpopulated pools is then silently skipped while the test still passes. Consider failing the test, or at least logging, when `f == NULL`.

Review-Result: WARNING


More information about the test-report mailing list