| 1069 | } |
| 1070 | |
| 1071 | static int |
| 1072 | test_refcnt_main(struct rte_mempool *refcnt_pool, |
| 1073 | struct rte_ring *refcnt_mbuf_ring) |
| 1074 | { |
| 1075 | unsigned i, lcore; |
| 1076 | |
| 1077 | lcore = rte_lcore_id(); |
| 1078 | printf("%s started at lcore %u\n", __func__, lcore); |
| 1079 | |
| 1080 | for (i = 0; i != REFCNT_MAX_ITER; i++) |
| 1081 | test_refcnt_iter(lcore, i, refcnt_pool, refcnt_mbuf_ring); |
| 1082 | |
| 1083 | refcnt_stop_workers = 1; |
| 1084 | rte_wmb(); |
| 1085 | |
| 1086 | printf("%s finished at lcore %u\n", __func__, lcore); |
| 1087 | return 0; |
| 1088 | } |
| 1089 | |
| 1090 | #endif |
| 1091 |
no test coverage detected