]> git.droids-corp.org - dpdk.git/blobdiff - test/test/test_link_bonding_rssconf.c
ethdev: deprecate port count function
[dpdk.git] / test / test / test_link_bonding_rssconf.c
index 4cc08f5a22e7e6ede5cba5da3ba803def15ccb2a..6a1a28d2360ef1cf9929bc3994306025c8cea930 100644 (file)
@@ -521,7 +521,7 @@ test_setup(void)
        FOR_EACH_PORT(n, port) {
                port = &test_params.slave_ports[n];
 
-               port_id = rte_eth_dev_count();
+               port_id = rte_eth_dev_count_avail();
                snprintf(name, sizeof(name), SLAVE_DEV_NAME_FMT, port_id);
 
                retval = rte_vdev_init(name, "size=64,copy=0");