| 323 | } |
| 324 | |
| 325 | static unsigned int |
| 326 | lsi_parse_nqueue(const char *q_arg) |
| 327 | { |
| 328 | char *end = NULL; |
| 329 | unsigned long n; |
| 330 | |
| 331 | /* parse hexadecimal string */ |
| 332 | n = strtoul(q_arg, &end, 10); |
| 333 | if ((q_arg[0] == '\0') || (end == NULL) || (*end != '\0')) |
| 334 | return 0; |
| 335 | if (n == 0) |
| 336 | return 0; |
| 337 | if (n >= MAX_RX_QUEUE_PER_LCORE) |
| 338 | return 0; |
| 339 | |
| 340 | return n; |
| 341 | } |
| 342 | |
| 343 | static int |
| 344 | lsi_parse_timer_period(const char *q_arg) |
no test coverage detected