| 70 | }; |
| 71 | |
| 72 | static inline void |
| 73 | store_load_barrier(uint32_t utype) |
| 74 | { |
| 75 | if (utype == USE_MB) |
| 76 | rte_mb(); |
| 77 | else if (utype == USE_SMP_MB) |
| 78 | rte_smp_mb(); |
| 79 | else |
| 80 | RTE_VERIFY(0); |
| 81 | } |
| 82 | |
| 83 | /* |
| 84 | * Peterson lock implementation. |
no test coverage detected