|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:53:42 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 is applied silently.
   When the PF-reported limit is below `dev->data->mtu + IAVF_ETH_OVERHEAD`, the port starts with a smaller frame limit than the configured MTU implies. Nothing tells the user this happened.

   ```c
   +	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;
   ```

   On a PF that does not re-add the port VLAN tag the way ice does, frames near the configured MTU would be dropped without explanation. Consider a debug or info log when the cap takes effect, for example:

   ```c
   	if (vf->vf_res->max_mtu != 0 && vf->vf_res->max_mtu < vf->max_pkt_len) {
   		PMD_DRV_LOG(INFO, "max_pkt_len %u capped to PF limit %u",
   			    vf->max_pkt_len, vf->vf_res->max_mtu);
   		vf->max_pkt_len = vf->vf_res->max_mtu;
   	}
   ```

Review-Result: CLEAN


More information about the test-report mailing list