[dpdk-dev] [PATCH 2/2] examples: adjust Rx and Tx descriptors to device limits

Stephen Hemminger stephen at networkplumber.org
Sat Jul 8 19:05:37 CEST 2017


On Thu, 25 May 2017 16:57:54 +0100
Andrew Rybchenko <arybchenko at solarflare.com> wrote:

> +	retval = rte_eth_dev_adjust_nb_rx_tx_desc(portid, &nb_rxd, &nb_txd);
> +	if (retval != 0)
> +		rte_exit(EXIT_FAILURE, "port %u: rte_eth_dev_adjust_nb_rx_tx_desc "
> +				"failed (res=%d)\n", portid, retval);
> +

rte_exit is equivalent to panic in kernel.
No API call should call rte_exit. Instead the error must be propogated
back to caller and/or leave the slave in a dead state.


More information about the dev mailing list