net/octeontx2: support flow action port ID
[dpdk.git] / app / test / test_hash_multiwriter.c
index 50018db..afa3c7b 100644 (file)
@@ -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, "");