| 63 | static struct test_rcu_thread_info thread_info[RTE_MAX_LCORE/4]; |
| 64 | |
| 65 | static int |
| 66 | alloc_rcu(void) |
| 67 | { |
| 68 | int i; |
| 69 | size_t sz; |
| 70 | |
| 71 | sz = rte_rcu_qsbr_get_memsize(RTE_MAX_LCORE); |
| 72 | |
| 73 | for (i = 0; i < RTE_MAX_LCORE; i++) |
| 74 | t[i] = (struct rte_rcu_qsbr *)rte_zmalloc(NULL, sz, |
| 75 | RTE_CACHE_LINE_SIZE); |
| 76 | |
| 77 | return 0; |
| 78 | } |
| 79 | |
| 80 | static int |
| 81 | free_rcu(void) |
no test coverage detected