When uring is enabled, uring socket implementation is used to create sockets. We may want to use posix sockets for some reasons (e.g. performance tests). This patch adds a new API function to set the socket implementation which will be used by default, e.g. when no impl_name is passed to spdk_sock_connect/spdk_sock_listen functions. Misc changes: include spdk_internal/log.h to register SOCK log component. The new include header already includes spdk/sock.h and spdk/queue.h, sow remove direct inclusion of these headers. Change-Id: I4abad0a59cd033b15bd43a00e3dbdf313fa6b06c Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4327 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
sock_rpc.c | ||
sock.c | ||
spdk_sock.map |