]> git.droids-corp.org - dpdk.git/blobdiff - app/pdump/main.c
eal: set name when creating a control thread
[dpdk.git] / app / pdump / main.c
index 1f43e3fd7e1d24505c40567e8baddde72ea7c93c..aa0f3a34de8069b8102649ee4d634d848799efa2 100644 (file)
@@ -847,6 +847,9 @@ main(int argc, char **argv)
        if (diag < 0)
                rte_panic("Cannot init EAL\n");
 
+       if (rte_eth_dev_count_avail() == 0)
+               rte_exit(EXIT_FAILURE, "No Ethernet ports - bye\n");
+
        argc -= diag;
        argv += (diag - 3);