]> git.droids-corp.org - dpdk.git/blobdiff - examples/ptpclient/ptpclient.c
ethdev: fix C99 flexible arrays from flow API
[dpdk.git] / examples / ptpclient / ptpclient.c
index 55be3f7cd0ce59d6424fa5883e2dce095ad34919..c44013bc1269a8ccb639db2414b46595f8abd3f4 100644 (file)
@@ -727,7 +727,7 @@ main(int argc, char *argv[])
                rte_exit(EXIT_FAILURE, "Error with PTP initialization\n");
 
        /* Check that there is an even number of ports to send/receive on. */
-       nb_ports = rte_eth_dev_count();
+       nb_ports = rte_eth_dev_count_avail();
 
        /* Creates a new mempool in memory to hold the mbufs. */
        mbuf_pool = rte_pktmbuf_pool_create("MBUF_POOL", NUM_MBUFS * nb_ports,