X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fvhost%2Fmain.c;h=47899473b67d6f797825bee7023a3f4fe2023c8f;hb=51151be63c9e46a4a53fa570c9b47bc0c5372309;hp=81a6a8cf9191bfc7fac4bfd404be32fe17ba7105;hpb=12ee45a3620b30a99d21cbf5a25d787f088f0de9;p=dpdk.git diff --git a/examples/vhost/main.c b/examples/vhost/main.c index 81a6a8cf91..47899473b6 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c @@ -1436,11 +1436,12 @@ main(int argc, char *argv[]) if (ret < 0) rte_exit(EXIT_FAILURE, "Invalid argument\n"); - for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id ++) + for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { TAILQ_INIT(&lcore_info[lcore_id].vdev_list); if (rte_lcore_is_enabled(lcore_id)) - lcore_ids[core_id ++] = lcore_id; + lcore_ids[core_id++] = lcore_id; + } if (rte_lcore_count() > RTE_MAX_LCORE) rte_exit(EXIT_FAILURE,"Not enough cores\n");