|SUCCESS| raw/ntb: fix Tx of incomplete packets

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Tue Nov 17 13:08:27 CET 2026


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

_AI Code Review_

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

No Errors or Warnings found.

Info

1. Truncating the mbuf's `data_len` leaves `pkt_len` stale (pre-existing).

   ```c
   txm->data_len = seg_len[i];
   ```

   This branch writes to an mbuf the application owns, but does not adjust `pkt_len` to match. The patch only moves this behaviour; it does not introduce it.

   Now that every segment is validated before anything is consumed, a cleaner option is available. The pre-check loop could compare `txm->data_len` against `seg_len[i]` and either fail the packet or copy `RTE_MIN(txm->data_len, seg_len[i])` bytes into a local length. Either way, the caller's mbuf would no longer be modified.

Review-Result: CLEAN


More information about the test-report mailing list