]> git.droids-corp.org - dpdk.git/blobdiff - examples/exception_path/main.c
ethdev: deprecate port count function
[dpdk.git] / examples / exception_path / main.c
index 996f4939dc21c51b30d58b1b8cc4ba2414860f10..2b381a5d857b1bd63434cf7ff7b56cf78e52fd13 100644 (file)
@@ -559,7 +559,7 @@ main(int argc, char** argv)
        }
 
        /* Get number of ports found in scan */
-       nb_sys_ports = rte_eth_dev_count();
+       nb_sys_ports = rte_eth_dev_count_avail();
        if (nb_sys_ports == 0)
                FATAL_ERROR("No supported Ethernet device found");
        /* Find highest port set in portmask */