net/sfc: rename array of SW stats descriptions
[dpdk.git] / app / test / test_barrier.c
index a0b4704..c27f8a0 100644 (file)
@@ -92,12 +92,14 @@ plock_lock(struct plock *l, uint32_t self)
        other = self ^ 1;
 
        l->flag[self] = 1;
+       rte_smp_wmb();
        l->victim = self;
 
        store_load_barrier(l->utype);
 
        while (l->flag[other] == 1 && l->victim == self)
                rte_pause();
+       rte_smp_rmb();
 }
 
 static void
@@ -234,7 +236,7 @@ plock_test(uint64_t iter, enum plock_use_type utype)
 
        /* test phase - start and wait for completion on each active lcore */
 
-       rte_eal_mp_remote_launch(plock_test1_lcore, lpt, CALL_MASTER);
+       rte_eal_mp_remote_launch(plock_test1_lcore, lpt, CALL_MAIN);
        rte_eal_mp_wait_lcore();
 
        /* validation phase - make sure that shared and local data match */