[dpdk-dev] [PATCH v2] app/pdump: check for ports

Thomas Monjalon thomas at monjalon.net
Mon Apr 23 01:13:28 CEST 2018


> > In case of application build with shared library mode unless option '-d' is
> > passed, poll mode driver for devices is not initialized. Notifying the user just
> > after rte_eal_init is pro active way of intimating the user.
> > 
> > Signed-off-by: Vipin Varghese <vipin.varghese at intel.com>
> > ---
> > +	if (rte_eth_dev_count() == 0)
> > +		rte_exit(EXIT_FAILURE, "No Ethernet ports - bye\n");

Rebased to the new function rte_eth_dev_count_avail.

> Acked-by: Reshma Pattan <reshma.pattan at intel.com>

Applied, thanks




More information about the dev mailing list