|SUCCESS| net/txgbe: store flow rules without wrappers
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Tue Nov 10 23:11:17 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/172802
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-10
Info
1. The rewritten `rte_memcpy()` calls in `txgbe_flow_destroy()` are control-path copies of small fixed-size structures. For example:
rte_memcpy(&ntuple_filter, ntuple_filter_ptr,
sizeof(struct rte_eth_ntuple_filter));
Since these lines are being touched anyway, plain struct assignment would be simpler and lets the compiler check the types. This also matches the `*ntuple_filter_ptr = ntuple_filter;` style the patch uses in `txgbe_flow_create()`:
ntuple_filter = *ntuple_filter_ptr;
The same applies to the ethertype, syn, fdir and l2_tunnel cases.
2. The explicit casts from `pmd_flow->rule` are unnecessary if `rule` is `void *`, which the plain assignments `flow->rule = ntuple_filter_ptr` in `txgbe_flow_create()` suggest. For example:
ntuple_filter_ptr = (struct rte_eth_ntuple_filter *)
pmd_flow->rule;
These could become single-line assignments, e.g. `ntuple_filter_ptr = pmd_flow->rule;`.
Review-Result: CLEAN
More information about the test-report
mailing list