net/mlx5: remove redundant operations in NEON Rx
[dpdk.git] / app / test / test_mempool_perf.c
index 4c87783..d7d0aaa 100644 (file)
@@ -104,7 +104,7 @@ static struct mempool_test_stats stats[RTE_MAX_LCORE];
  * other bytes are set to 0.
  */
 static void
-my_obj_init(struct rte_mempool *mp, __attribute__((unused)) void *arg,
+my_obj_init(struct rte_mempool *mp, __rte_unused void *arg,
            void *obj, unsigned i)
 {
        uint32_t *objnum = obj;
@@ -143,8 +143,8 @@ per_lcore_mempool_test(void *arg)
 
        stats[lcore_id].enq_count = 0;
 
-       /* wait synchro for slaves */
-       if (lcore_id != rte_get_master_lcore())
+       /* wait synchro for workers */
+       if (lcore_id != rte_get_main_lcore())
                while (rte_atomic32_read(&synchro) == 0);
 
        start_cycles = rte_get_timer_cycles();
@@ -214,7 +214,7 @@ launch_cores(struct rte_mempool *mp, unsigned int cores)
                return -1;
        }
 
-       RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+       RTE_LCORE_FOREACH_WORKER(lcore_id) {
                if (cores == 1)
                        break;
                cores--;
@@ -222,13 +222,13 @@ launch_cores(struct rte_mempool *mp, unsigned int cores)
                                      mp, lcore_id);
        }
 
-       /* start synchro and launch test on master */
+       /* start synchro and launch test on main */
        rte_atomic32_set(&synchro, 1);
 
        ret = per_lcore_mempool_test(mp);
 
        cores = cores_save;
-       RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+       RTE_LCORE_FOREACH_WORKER(lcore_id) {
                if (cores == 1)
                        break;
                cores--;