Spdk/test/unit/lib/vhost
Jim Harris fb8acd90aa util: make spdk_io_channel_get_ctx() inline
This requires exposing struct spdk_io_channel in the
public header - mark it as internal with Doxygen
comments to make it extra clear that applications
should not use the data structure directly.

This is a very hot function in the main I/O path,
so making this function inline has a significant
performance benefit.  A bdevperf microbenchmark
using null bdevs shows a 11% improvement.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I70e30e184000705704bb004e8da1c7476a6aceeb

Reviewed-on: https://review.gerrithub.io/393824
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2018-01-09 12:46:35 -05:00
..
vhost_blk.c ut/vhost: move mock functions to common vhost file 2017-11-20 19:34:53 -05:00
vhost_scsi.c scsi, iscsi: move task->parent to iSCSI task 2018-01-05 00:01:37 -05:00
vhost.c vhost: Replace RTE_MAX_LCORE by spdk_env_get_last_core() 2017-12-28 12:03:40 -05:00
Makefile ut/vhost: add UT coverage for vhost_blk.c 2017-09-06 18:14:15 -04:00
test_vhost.c util: make spdk_io_channel_get_ctx() inline 2018-01-09 12:46:35 -05:00