* Parse the coremask given as argument (hexadecimal string) and set * the global configuration of forwarding cores. */
| 266 | * the global configuration of forwarding cores. |
| 267 | */ |
| 268 | static void |
| 269 | parse_fwd_portmask(const char *portmask) |
| 270 | { |
| 271 | char *end; |
| 272 | unsigned long long int pm; |
| 273 | |
| 274 | /* parse hexadecimal string */ |
| 275 | end = NULL; |
| 276 | pm = strtoull(portmask, &end, 16); |
| 277 | if ((portmask[0] == '\0') || (end == NULL) || (*end != '\0')) |
| 278 | rte_exit(EXIT_FAILURE, "Invalid fwd port mask\n"); |
| 279 | else |
| 280 | set_fwd_ports_mask((uint64_t) pm); |
| 281 | } |
| 282 | |
| 283 | static void |
| 284 | print_invalid_socket_id_error(void) |
no test coverage detected