|SUCCESS| [2/2] net/pcap: handle > 64K packets in capture file

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Sat Nov 14 20:28:54 CET 2026


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

_AI Code Review_

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

No Errors or Warnings found. One optional suggestion on patch 1/2.

**Patch 1/2: net/pcap: fix Rx timestamp in secondary process**

Info: `eth_pcap_rx_infinite()` now looks up the device on every burst.

```c
struct pmd_internals *internals = rte_eth_devices[pcap_q->port_id].data->dev_private;
```

This adds a global array lookup and a pointer chase to the per-burst fast path.

The lookup only matters when timestamp offload is enabled. Two cheaper alternatives:

- Cache the dynfield offset and flag, or a pointer to `pmd_internals`, in `struct pcap_rx_queue` at queue setup. The queue structure is also in shared memory.
- Move the lookup inside the `timestamp_offloading` branch, so the common case pays nothing.

Review-Result: CLEAN


More information about the test-report mailing list