+17
−9
Loading
Change type of `vhost_stop_device_cb()` and `vhost_destroy_connection_cb()` to return response code instead of "void". While DPDK callbacks `stop_device()` and `destroy_connection()` do not have response code, it does make sense to have them in our VHOST wrappers because those actions can fail. Practical benefit we get by adopting this change is that we can now use high level `vhost_stop_device_cb()` and `vhost_destroy_connection_cb()` in unittests and check if they succeeded or not. Change-Id: I2cd1886728b1edce7946e87db7ca0ac435e83a41 Signed-off-by:Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471712 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>