On Tue, 17 Nov 2026 10:32:12 -0800
Stephen Hemminger <[email protected]> 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: [email protected]
> 
> Reported-by: Anthropic OSS scanner (ANT-2026-DLCI8IK6)
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---

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

Reply via email to