Re: [PATCH v15 06/18] net/pcap: rework transmit burst handling

David Marchand
2026-02-16T10:03:01Z

On Fri, 13 Feb 2026 at 18:03, Stephen Hemminger
<stephen@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@dpdk.org
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

It seems this commit does a lot more than fixing one issue.
Please split.

--
David Marchand