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

Function new_socket_id

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

* Helper function to check if socket is already discovered. * If yes, return positive value. If not, return zero. */

Source from the content-addressed store, hash-verified

728 * If yes, return positive value. If not, return zero.
729 */
730int
731new_socket_id(unsigned int socket_id)
732{
733 unsigned int i;
734
735 for (i = 0; i < num_sockets; i++) {
736 if (socket_ids[i] == socket_id)
737 return 0;
738 }
739 return 1;
740}
741
742/*
743 * Setup default configuration.

Callers 6

check_socket_idFunction · 0.85
parse_portnuma_configFunction · 0.85
parse_ringnuma_configFunction · 0.85
launch_args_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected