Spdk/lib/vhost
dongx.yi 3cf37bbfbc vhost: Inline the calculation of vhost session memory region.
There are for loops to do these calculations for vhost session memory region.
we can inline these for both in vhost_session_mem_register and
vhost_session_mem_unregister.

It not only removed the duplicated codes but also reduced the stack consumption.

Signed-off-by: dongx.yi <dongx.yi@intel.com>
Change-Id: Idb9f5ea13e09aef6b24fa27a2bb809b15ece50e2
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478820
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2020-01-07 12:17:55 +00:00
..
Makefile make: add dependencies for the rte_vhost build. 2019-09-09 22:15:24 +00:00
rte_vhost_compat.c vhost: Inline the calculation of vhost session memory region. 2020-01-07 12:17:55 +00:00
vhost_blk.c lib/vhost: Allocate cpumask statically for struct spdk_vhost_dev 2020-01-03 08:32:38 +00:00
vhost_internal.h lib/vhost: Allocate cpumask statically for struct spdk_vhost_dev 2020-01-03 08:32:38 +00:00
vhost_nvme.c nvme: allow setting of completion queue CDW0 2019-10-24 18:02:38 +00:00
vhost_rpc.c lib/vhost: Allocate cpumask statically for struct spdk_vhost_dev 2020-01-03 08:32:38 +00:00
vhost_scsi.c lib/vhost: Allocate cpumask statically for struct spdk_vhost_dev 2020-01-03 08:32:38 +00:00
vhost.c lib/vhost: Allocate cpumask statically for poll group assignment 2020-01-03 08:32:38 +00:00