| 98 | } |
| 99 | |
| 100 | static int |
| 101 | parse_num_flows(const char *flows) |
| 102 | { |
| 103 | char *end = NULL; |
| 104 | |
| 105 | /* parse hexadecimal string */ |
| 106 | num_flows = strtoul(flows, &end, 16); |
| 107 | if ((flows[0] == '\0') || (end == NULL) || (*end != '\0')) |
| 108 | return -1; |
| 109 | |
| 110 | if (num_flows == 0) |
| 111 | return -1; |
| 112 | |
| 113 | return 0; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * The application specific arguments follow the DPDK-specific |
no test coverage detected