|SUCCESS| iavf: cap max_pkt_len to what the pf reports

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Fri Nov 27 10:59:07 CET 2026


Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/173269

_AI Code Review_

=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-27

Info

1. The cap silently lowers the effective Rx frame limit below the configured MTU plus overhead, with no log message:

       if (vf->vf_res->max_mtu != 0 && vf->vf_res->max_mtu < vf->max_pkt_len)
               vf->max_pkt_len = vf->vf_res->max_mtu;

   With a port VLAN on ice, the commit message explains why this is harmless. With another PF, or one that reports a smaller limit for a different reason, received frames near the configured MTU would be dropped. Nothing would tell the user why.

   Consider a `PMD_DRV_LOG(INFO, ...)` (or DEBUG) when the cap is applied, showing both the requested and the capped value. That makes such cases diagnosable.

2. Pre-existing, not introduced by this patch: `vf->max_pkt_len = dev->data->mtu + IAVF_ETH_OVERHEAD;` uses a fixed overhead constant rather than a per-device or offload-dependent calculation. This patch only clamps the result, so it is noted for whoever works on this code next.

Review-Result: CLEAN


More information about the test-report mailing list