]> git.droids-corp.org - dpdk.git/blobdiff - doc/guides/sample_app_ug/l2_forward_job_stats.rst
bus/pci: reference driver structure before mapping
[dpdk.git] / doc / guides / sample_app_ug / l2_forward_job_stats.rst
index f14a780ae9f99cba11b1a9b1e35e859087579459..d7219a2939ff6ad6b71444168e198b32eef785f8 100644 (file)
@@ -178,11 +178,6 @@ in the *DPDK Programmer's Guide* and the *DPDK API Reference*.
 
 .. code-block:: c
 
-    nb_ports = rte_eth_dev_count();
-
-    if (nb_ports == 0)
-        rte_exit(EXIT_FAILURE, "No Ethernet ports - bye\n");
-
     /* reset l2fwd_dst_ports */
 
     for (portid = 0; portid < RTE_MAX_ETHPORTS; portid++)