Re: [PATCH v9 13/25] ethdev: convert to eal hotplug
From: David Marchand <hidden>
Date: 2016-09-12 07:17:10
From: David Marchand <hidden>
Date: 2016-09-12 07:17:10
On Wed, Sep 7, 2016 at 4:08 PM, Shreyansh Jain [off-list ref] wrote: [snip]
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index fdeac86..86c9d1a 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c
[snip]
+ ret = rte_eal_dev_attach(name, args);
+ if (ret < 0)
+ goto err;
+
+ /* no point looking at eth_dev_last_created_port if no port exists */
+ if (!nb_ports) {
+ RTE_LOG(ERR, EAL, "No ports founds for device (%s)\n", name);No port found ? -- David Marchand