| 48 | } |
| 49 | |
| 50 | static unsigned int |
| 51 | l2fwd_event_parse_nqueue(const char *q_arg) |
| 52 | { |
| 53 | char *end = NULL; |
| 54 | unsigned long n; |
| 55 | |
| 56 | /* parse hexadecimal string */ |
| 57 | n = strtoul(q_arg, &end, 10); |
| 58 | if ((q_arg[0] == '\0') || (end == NULL) || (*end != '\0')) |
| 59 | return 0; |
| 60 | if (n == 0) |
| 61 | return 0; |
| 62 | if (n >= MAX_RX_QUEUE_PER_LCORE) |
| 63 | return 0; |
| 64 | |
| 65 | return n; |
| 66 | } |
| 67 | |
| 68 | static int |
| 69 | l2fwd_event_parse_timer_period(const char *q_arg) |
no test coverage detected