]> git.droids-corp.org - dpdk.git/blobdiff - examples/vmdq/main.c
net/virtio: move PCI device ids to the driver
[dpdk.git] / examples / vmdq / main.c
index 178af2f5b9d98aa06a3814cc9feafec5e2b73c42..360492bae70fbabf76da2e5475f8ed6f961f4abd 100644 (file)
@@ -599,8 +599,6 @@ main(int argc, char *argv[])
                rte_exit(EXIT_FAILURE, "Not enough cores\n");
 
        nb_ports = rte_eth_dev_count();
                rte_exit(EXIT_FAILURE, "Not enough cores\n");
 
        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
 
        /*
         * Update the global var NUM_PORTS and global array PORTS