]> git.droids-corp.org - dpdk.git/blobdiff - test/test/test_link_bonding_mode4.c
crypto/dpaa_sec: fix HMAC supported digest sizes
[dpdk.git] / test / test / test_link_bonding_mode4.c
index 426877a2a03cca1d210756646f908051bd14346c..33c1fab0117a3c27250b0300626a8d543381cc1a 100644 (file)
@@ -425,7 +425,7 @@ test_setup(void)
                        TEST_ASSERT(retval >= 0,
                                "Failed to create ring ethdev '%s'\n", name);
 
-                       port->port_id = rte_eth_dev_count() - 1;
+                       port->port_id = rte_eth_dev_count_avail() - 1;
                }
 
                retval = configure_ethdev(port->port_id, 1);