|SUCCESS| [v2, 8/8] net/zxdh: check msg id before indexing the seqid table
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Thu Nov 12 12:38:18 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/172846
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-12
**[PATCH v2 3/8] net/zxdh: refuse PF mailbox requests not naming a VF of this PF**
Info: the new helper tests integer values for truth directly, where DPDK style prefers explicit comparisons against 0.
```c
if ((msghead->pcieid & ZXDH_PCIEID_IS_PF_MASK) ||
...
return vport.vf_flag &&
```
Suggested form:
```c
if ((msghead->pcieid & ZXDH_PCIEID_IS_PF_MASK) != 0 ||
...
return vport.vf_flag != 0 &&
```
**[PATCH v2 6/8] net/zxdh: allocate a zeroed full-size payload buffer**
Info: this is pre-existing and not introduced by this patch. The receive scratch buffer is a short-lived, process-local temporary that is not DMA'd or shared.
```c
recved_msg = rte_zmalloc(NULL, ZXDH_BAR_MSG_PAYLOAD_MAX_LEN, 0);
```
Plain `calloc()`/`free()` would avoid consuming hugepage heap on every mailbox message. This could be considered in a separate cleanup.
Review-Result: CLEAN
More information about the test-report
mailing list