numam-spdk/lib/sock
Shuhei Matsumoto cf95d4a24f sock: Fix return value of spdk_sock_group_poll to return number of events
spdk_sock_group_poll() and spdk_sock_group_poll_count() had returned
0 on success. The implementation didn't match the specification
described in the header file, and couldn't be used to collect stats
correctly because 0 means idle.

This patch fixes the return value of spdk_sock_group_poll() and
spdk_sock_group_poll_count() to return number of events and
the callers not to overwrite the return value by 0.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I7e2a17187fc74ea44d3acf2f35d63f5e5a254eda
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463710
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-08-02 00:19:43 +00:00
..
posix sock: Add the socket priority setting function. 2019-07-18 04:09:37 +00:00
vpp net/vpp: move to VPP 19.04 2019-07-25 14:51:21 +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: Fix return value of spdk_sock_group_poll to return number of events 2019-08-02 00:19:43 +00:00