| 213 | } |
| 214 | |
| 215 | static int |
| 216 | init_lcores(void) |
| 217 | { |
| 218 | unsigned lcore_id; |
| 219 | |
| 220 | for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { |
| 221 | lcore_conf[lcore_id].socketid = |
| 222 | rte_lcore_to_socket_id(lcore_id); |
| 223 | if (rte_lcore_is_enabled(lcore_id) == 0) { |
| 224 | lcore_conf[lcore_id].status = LCORE_INVALID; |
| 225 | continue; |
| 226 | } else |
| 227 | lcore_conf[lcore_id].status = LCORE_AVAIL; |
| 228 | } |
| 229 | return 0; |
| 230 | } |
| 231 | |
| 232 | static int |
| 233 | init_mbufpool(unsigned nb_mbuf) |
no test coverage detected