Commit 2032096b authored by Michal Berger's avatar Michal Berger Committed by Konrad Sztyber
Browse files

lib/vhost: Rename rte_vhost_slave_config_change()

parent f099b90d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1129,11 +1129,11 @@ vhost_session_bdev_resize_cb(struct spdk_vhost_dev *vdev,
			     struct spdk_vhost_session *vsession,
			     void *ctx)
{
#if RTE_VERSION >= RTE_VERSION_NUM(20, 02, 0, 0)
	SPDK_NOTICELOG("bdev send slave msg to vid(%d)\n", vsession->vid);
	rte_vhost_slave_config_change(vsession->vid, false);
#if RTE_VERSION >= RTE_VERSION_NUM(23, 03, 0, 0)
	rte_vhost_backend_config_change(vsession->vid, false);
#else
	SPDK_NOTICELOG("bdev does not support resize until DPDK submodule version >= 20.02\n");
	rte_vhost_slave_config_change(vsession->vid, false);
#endif

	return 0;
+4 −0
Original line number Diff line number Diff line
@@ -128,7 +128,11 @@ DEFINE_STUB(spdk_bdev_flush, int,
DEFINE_STUB(rte_vhost_set_inflight_desc_split, int, (int vid, uint16_t vring_idx, uint16_t idx), 0);
DEFINE_STUB(rte_vhost_set_inflight_desc_packed, int, (int vid, uint16_t vring_idx, uint16_t head,
		uint16_t last, uint16_t *inflight_entry), 0);
#if RTE_VERSION >= RTE_VERSION_NUM(23, 03, 0, 0)
DEFINE_STUB(rte_vhost_backend_config_change, int, (int vid, bool need_reply), 0);
#else
DEFINE_STUB(rte_vhost_slave_config_change, int, (int vid, bool need_reply), 0);
#endif
DEFINE_STUB(spdk_json_decode_bool, int, (const struct spdk_json_val *val, void *out), 0);
DEFINE_STUB(spdk_json_decode_object_relaxed, int,
	    (const struct spdk_json_val *values, const struct spdk_json_object_decoder *decoders,