|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:43:33 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 3/8** (net/zxdh: refuse PF mailbox requests not naming a VF of this PF)

Info: The new helper uses implicit truthiness on non-bool integer values. DPDK style prefers explicit comparisons in both places:

```c
if ((msghead->pcieid & ZXDH_PCIEID_IS_PF_MASK) ||
```
```c
return vport.vf_flag &&
```

Suggested form:

```c
if ((msghead->pcieid & ZXDH_PCIEID_IS_PF_MASK) != 0 ||
		ZXDH_PF_PCIE_ID(msghead->pcieid) != hw->pcie_id)
	return false;

return vport.vf_flag != 0 &&
	vport.epid == hw->vport.epid &&
	vport.pfid == hw->vport.pfid;
```

Review-Result: CLEAN


More information about the test-report mailing list