numam-spdk/lib/sock
tone.zhang 88ddf0f22e UT: fix the sock_ut failure because of the port conflict
In SPDK sock_ut, the port 3260 is tested. It is conflict with the SCSI
Target Daemon (tgtd). If the service is enabled, it makes sock_ut failure.

Suite: sock
  Test: posix_sock .../home/ubuntu/spdk/lib/sock/posix/posix.c: 238:spdk_posix_sock_create: *ERROR*: bind() failed errno = 98
FAILED

The patch changes port 3260 to UT_PORT, and enhance the error log when
socket bind is failed.

Also enhance error log carrying port value in posix.c.

Change-Id: I31e47af49335cdf7eaffa44237860ebc140d2419
Signed-off-by: tone.zhang <tone.zhang@arm.com>
Reviewed-on: https://review.gerrithub.io/c/439983
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-01-22 17:28:24 +00:00
..
posix UT: fix the sock_ut failure because of the port conflict 2019-01-22 17:28:24 +00:00
vpp net/vpp: fix the compilation warning. 2018-12-31 06:29:15 +00:00
Makefile net: split sock abstraction into lib/sock 2018-06-22 17:09:57 +00:00
net_framework.c net: add asynchronous initialization and finish 2018-11-07 17:08:27 +00:00
sock.c sock: Update the spdk_sock_getaddr function. 2018-10-11 04:58:49 +00:00