From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: stable@dpdk.org
Subject: Re: [PATCH v2] net/pcap: fix handling of transmit errors
Date: Sun, 22 Nov 2026 10:06:32 -0800 [thread overview]
Message-ID: <20261122100632.2c599577@phoenix.local> (raw)
In-Reply-To: <20261117183240.852179-1-stephen@networkplumber.org>
On Tue, 17 Nov 2026 10:32:12 -0800
Stephen Hemminger <stephen@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@dpdk.org
>
> Reported-by: Anthropic OSS scanner (ANT-2026-DLCI8IK6)
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
Fixed up complaints about comments from AI and applied to next-net
prev parent reply other threads:[~2026-11-22 18:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 23:28 [PATCH] net/pcap: fix handling of transmit errors Stephen Hemminger
2026-11-17 18:32 ` [PATCH v2] " Stephen Hemminger
2026-11-22 18:06 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261122100632.2c599577@phoenix.local \
--to=stephen@networkplumber.org \
--cc=dev@dpdk.org \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox