4a6fe72ec0
Have the main spdk_sock_group_poll_count routine just pass an array of sock pointers to the posix implementation function. Then the posix implementation can just fill out which spdk_socks have data and let the caller do the callback routines. This moves a fair bit of code from the posix implementation to the common code, which will simplify the upcoming VPP implementation. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I547821ce9875777448f433cae59e316a45c259f6 Reviewed-on: https://review.gerrithub.io/400332 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>