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

Function mlx5_test_get_socket_path

dpdk/drivers/net/mlx5/mlx5_testpmd.c:152–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151#ifndef RTE_EXEC_ENV_WINDOWS
152static const char*
153mlx5_test_get_socket_path(char *extend)
154{
155 if (strstr(extend, "socket=") == extend) {
156 const char *socket_path = strchr(extend, '=') + 1;
157
158 TESTPMD_LOG(DEBUG, "MLX5 socket path is %s\n", socket_path);
159 return socket_path;
160 }
161
162 TESTPMD_LOG(ERR, "Failed to extract a valid socket path from %s\n",
163 extend);
164 return NULL;
165}
166
167static int
168mlx5_test_extend_devargs(char *identifier, char *extend)

Callers 1

mlx5_test_extend_devargsFunction · 0.85

Calls 2

strstrFunction · 0.85
strchrFunction · 0.85

Tested by

no test coverage detected