[PATCH v15 06/18] net/pcap: rework transmit burst handling
David Marchand
david.marchand at redhat.com
Mon Feb 16 11:02:44 CET 2026
On Fri, 13 Feb 2026 at 18:03, Stephen Hemminger
<stephen at networkplumber.org> wrote:
>
> Replace the 64K stack-allocated bounce buffer with a per-queue
> buffer allocated from hugepages via rte_malloc at queue setup.
> This is necessary because the buffer may be used in a secondary
> process transmit path where the primary process allocated it.
>
> Fix error accounting: backpressure from pcap_sendpacket() (kernel
> socket buffer full) was incorrectly counted as errors. Malformed
> multi-segment mbufs where pkt_len exceeds actual data were silently
> accepted; they are now detected via rte_pktmbuf_read() failure
> and counted as errors.
>
> Add datapath debug logging macros (PMD_RX_LOG, PMD_TX_LOG) gated
> on RTE_ETHDEV_DEBUG_RX/TX. Advertise RTE_ETH_TX_OFFLOAD_MULTI_SEGS
> in device capabilities since the driver has always supported
> multi-segment transmit. Add tx_queue_release to free the bounce
> buffer.
>
> Fixes: fbbbf553f268 ("net/pcap: fix concurrent multiseg Tx")
> Cc: stable at dpdk.org
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
It seems this commit does a lot more than fixing one issue.
Please split.
--
David Marchand
More information about the stable
mailing list