* Check given socket id is valid or not with NUMA mode, * if valid, return 0, else return -1 */
| 1283 | * if valid, return 0, else return -1 |
| 1284 | */ |
| 1285 | static int |
| 1286 | check_socket_id(const unsigned int socket_id) |
| 1287 | { |
| 1288 | static int warning_once = 0; |
| 1289 | |
| 1290 | if (new_socket_id(socket_id)) { |
| 1291 | if (!warning_once && numa_support) |
| 1292 | fprintf(stderr, |
| 1293 | "Warning: NUMA should be configured manually by using --port-numa-config and --ring-numa-config parameters along with --numa.\n"); |
| 1294 | warning_once = 1; |
| 1295 | return -1; |
| 1296 | } |
| 1297 | return 0; |
| 1298 | } |
| 1299 | |
| 1300 | /* |
| 1301 | * Get the allowed maximum number of RX queues. |
no test coverage detected