|SUCCESS| [v2] acl: reject rules with inverted range
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Wed Nov 11 09:17:13 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/172832
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-11
Info
1. lib/acl/acl_bld.c: the continuation lines of the new `ACL_LOG()` call sit at the same indentation as the macro name, so the format string reads as a separate statement:
```
ACL_LOG(ERR,
"ACL context: %s, rule[%u] (userdata: %u): low bound exceeds high bound of a range field",
ctx->name, i, rule->data.userdata);
```
Indent the continuation lines one more level (double-indent is the usual style) to make it clear they are macro arguments.
2. app/test/test_acl.c: the new test only covers the 2-byte case (inverted `dst_port_low`/`dst_port_high`). The commit message names a NULL pointer dereference in `acl_gen_node()` for an inverted 1-byte RANGE field. A test for that case, such as an inverted proto range with a RANGE-typed 1-byte field in a custom `rte_acl_config`, would guard the crash path directly.
Review-Result: CLEAN
More information about the test-report
mailing list