]> git.droids-corp.org - dpdk.git/blobdiff - examples/vhost/main.c
examples/ip_pipeline: rework flow action CLI
[dpdk.git] / examples / vhost / main.c
index 32a79be458e9a6a20a063b277c2edebca6b3aa37..665886e7aa5b73cc443eec54e21b8438fe99e332 100644 (file)
@@ -1421,8 +1421,6 @@ main(int argc, char *argv[])
 
        /* Get the number of physical ports. */
        nb_ports = rte_eth_dev_count();
-       if (nb_ports > RTE_MAX_ETHPORTS)
-               nb_ports = RTE_MAX_ETHPORTS;
 
        /*
         * Update the global var NUM_PORTS and global array PORTS