|SUCCESS| [v3,6/6] examples: remove unused define
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Fri Jun 26 04:48:58 CEST 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/166290
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-06-26
# DPDK Patch Series Review
## Summary
This patch series removes unused `MAX_TX_QUEUE_PER_PORT` macros and associated dead code from various DPDK example applications. The changes are correct and improve code clarity by removing artificial constraints on Tx queue scaling.
---
## Patch 1/6: examples/l3fwd-graph: remove redundant Tx queue limit
**No issues found.**
The patch correctly removes dead code. The `MAX_TX_QUEUE_PER_PORT` macro was defined but never meaningfully used since `n_tx_queue = nb_lcores` is always less than or equal to `RTE_MAX_ETHPORTS` in practice. The removed check was redundant.
---
## Patch 2/6: examples/l3fwd: remove redundant Tx queue limit
**No issues found.**
Similar to patch 1, this removes dead code. The commit message correctly notes that `MAX_TX_QUEUE_PER_PORT` was defined as `RTE_MAX_LCORE`, making the check redundant since `n_tx_queue = nb_lcores` can never exceed `RTE_MAX_LCORE`.
---
## Patch 3/6: examples/ip_fragmentation: remove redundant Tx queue limit
**No issues found.**
Consistent with the previous patches. The macro and check are indeed unused and redundant.
---
## Patch 4/6: examples/ip_reassembly: remove redundant Tx queue limit
**No issues found.**
Same pattern as the previous patches. The change is correct.
---
## Patch 5/6: examples/ipv4_multicast: remove redundant Tx queue limit
**No issues found.**
Consistent with the other patches in the series.
---
## Patch 6/6: examples: remove unused define
**No issues found.**
This patch removes the `MAX_TX_QUEUE_PER_PORT` macro definition from multiple example applications where the macro was defined but never referenced anywhere in the code. The removals are all correct.
One minor formatting note (not an error): In `examples/l2fwd/main.c`, a blank line is added after removing the macro. This is acceptable and improves readability.
---
## Overall Assessment
**All patches in this series are correct with no errors or warnings.**
The changes:
- Remove genuinely dead code (macros that were defined but never used, or checks that could never trigger)
- Improve code maintainability by removing artificial constraints
- Are consistent across the series
- Include appropriate `Fixes:` tags and `Cc: stable at dpdk.org` where applicable
- Have clear commit messages explaining the rationale
No correctness bugs, style violations, or guideline violations were identified.
More information about the test-report
mailing list