[PATCH v2] net/pcap: fix handling of transmit errors

Stephen Hemminger stephen at networkplumber.org
Sun Nov 22 19:06:32 CET 2026


On Tue, 17 Nov 2026 10:32:12 -0800
Stephen Hemminger <stephen at networkplumber.org> wrote:

> The pcap PMD assumed every pcap_sendpacket() failure was back
> pressure and stopped the burst. A hard error such as EMSGSIZE or
> ENETDOWN caused the same mbuf to be returned to the caller on every
> burst, stalling the queue.
> 
> Only treat EAGAIN (socket send buffer full) as back pressure.
> Drop and count the packet on any other error, including ENOBUFS
> which means the packet was already dropped by the qdisc.
> 
> Use PMD_TX_LOG for the error message, as other errors in the Tx burst path do.
> 
> Bugzilla ID: 2132
> Fixes: cf91cce204ea ("net/pcap: fix error accounting and backpressure on Tx")
> Cc: stable at dpdk.org
> 
> Reported-by: Anthropic OSS scanner (ANT-2026-DLCI8IK6)
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---

Fixed up complaints about comments from AI and applied to next-net


More information about the stable mailing list