|SUCCESS| net/pcap: fix handling of transmit errors
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Tue Nov 17 00:55:52 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/172934
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-16
**Info**
1. The comment on the hard-error path now contradicts the code.
```c
/* Assume failure is backpressure */
PMD_LOG(ERR, "pcap_sendpacket() failed: %s", pcap_geterr(pcap));
rte_pktmbuf_free(mbuf);
```
This branch now handles non-transient errors by dropping the packet, which is the opposite of what the comment says. Suggested change:
```c
/* Hard error: drop the packet */
```
2. The patch can now log once per packet instead of once per burst.
Before, the loop broke after the first failure. Now, with `continue`, a persistent hard error (for example, a full filesystem or a downed interface) logs every packet of every burst at ERR level from the datapath:
```c
PMD_LOG(ERR, "pcap_sendpacket() failed: %s", pcap_geterr(pcap));
```
Consider demoting this to DEBUG, or logging only the first failure per burst. The `err_pkts` counter already records the drops.
3. The `Fixes:` tag has no `Cc: stable at dpdk.org`. If cf91cce204ea is in a released version, add the Cc so the fix gets backported.
Review-Result: CLEAN
More information about the test-report
mailing list