X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Ftest_hash_multiwriter.c;h=afa3c7b93d8590f1d702b7c802c8ac082897251d;hb=1b14508b3b34e768ad92c757ecace48b6e23c485;hp=50018db56c86874fb2f3d7320b5803f289782d8e;hpb=a9de470cc7c0649221e156fc5f30a2dbdfe7c166;p=dpdk.git diff --git a/app/test/test_hash_multiwriter.c b/app/test/test_hash_multiwriter.c index 50018db56c..afa3c7b93d 100644 --- a/app/test/test_hash_multiwriter.c +++ b/app/test/test_hash_multiwriter.c @@ -64,7 +64,7 @@ test_hash_multiwriter_worker(void *arg) /* * Calculate offset for entries based on the position of the - * logical core, from the master core (not counting not enabled cores) + * logical core, from the main core (not counting not enabled cores) */ offset = pos_core * tbl_multiwriter_test_params.nb_tsx_insertion; @@ -194,7 +194,7 @@ test_hash_multiwriter(void) /* Fire all threads. */ rte_eal_mp_remote_launch(test_hash_multiwriter_worker, - enabled_core_ids, CALL_MASTER); + enabled_core_ids, CALL_MAIN); rte_eal_mp_wait_lcore(); count = rte_hash_count(handle); @@ -260,12 +260,11 @@ err1: static int test_hash_multiwriter_main(void) { - if (rte_lcore_count() == 1) { - printf("More than one lcore is required to do multiwriter test\n"); - return 0; + if (rte_lcore_count() < 2) { + printf("Not enough cores for distributor_autotest, expecting at least 2\n"); + return TEST_SKIPPED; } - setlocale(LC_NUMERIC, "");