| 399 | } |
| 400 | |
| 401 | int |
| 402 | parse_mac_addr(const char *token, struct rte_ether_addr *addr) |
| 403 | { |
| 404 | struct rte_ether_addr *tmp; |
| 405 | |
| 406 | tmp = my_ether_aton(token); |
| 407 | if (tmp == NULL) |
| 408 | return -1; |
| 409 | |
| 410 | memcpy(addr, tmp, sizeof(struct rte_ether_addr)); |
| 411 | return 0; |
| 412 | } |
| 413 | |
| 414 | int |
| 415 | parse_cpu_core(const char *entry, |
no test coverage detected