50d0957b5e
For g_num_connections, we should create an proper array size, we cannot directly create it by the size: spdk_env_get_core_count(). The reason is that the core mask can be non-continuous,e.g., 0x1001, thus for effient access, we create a large array size with last_core +1, although we will have some space waste, but this will not be big, but still maintain the fast array index acccess. Change-Id: I95e1fc34e0816ac2f8764880c0d0e629f43a5dc4 Signed-off-by: Ziye Yang <optimistyzy@gmail.com> Reviewed-on: https://review.gerrithub.io/391909 Reviewed-by: <shuhei.matsumoto.xt@hitachi.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>