MCPcopy Create free account
hub / github.com/F-Stack/f-stack / check_socket_id

Function check_socket_id

dpdk/app/test-pmd/testpmd.c:1285–1298  ·  view source on GitHub ↗

* Check given socket id is valid or not with NUMA mode, * if valid, return 0, else return -1 */

Source from the content-addressed store, hash-verified

1283 * if valid, return 0, else return -1
1284 */
1285static int
1286check_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.

Callers 3

init_configFunction · 0.85
init_fwd_streamsFunction · 0.85
setup_attached_portFunction · 0.85

Calls 1

new_socket_idFunction · 0.85

Tested by

no test coverage detected