rte_eth_tx_burst return 0 after some time

Stephen Hemminger stephen at networkplumber.org
Mon Sep 9 18:39:53 CEST 2024


On Mon, 9 Sep 2024 15:25:23 +0200
Alan Arondel <arondel.alan at gmail.com> wrote:

> Hello Everyone,
> 
> I'm trying to add an export module to my application. I use DPDK
> version 20.11, a 82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb
> and the vfio-pci driver.
> port configuration is the following:
> 
> port_conf->txmode.mq_mode = ETH_MQ_TX_NONE;
> port_conf->txmode.offloads = DEV_TX_OFFLOAD_MULTI_SEGS;
> 
> I use only 1 queue on the card and the configuration is the following :
>     nb_desc : 4096
>     rs_threshold : 32
>     free_threshold : 32
> 
> I have an issue where at some point during the lifetime of the
> application, the rte_eth_tx_burst return only 0 and nothing can be
> done once it is stuck after several seconds of the beginning of
> transmission.

Looks like the driver you are passing packets is unable to send
packets. Most drivers have an internal transmit ring, so either
the hardware is not consuming the packets from the ring or the
packets have been sent but the transmit ring cleanup logic has
not been called.

In most cases, problems are in your application. Best to start
with making sure simple applications like testpmd and l3fwd
work with similar configurations.


More information about the users mailing list