diff --git a/lib/vhost/rte_vhost_compat.c b/lib/vhost/rte_vhost_compat.c index 7ccc4355f..da5fc198d 100644 --- a/lib/vhost/rte_vhost_compat.c +++ b/lib/vhost/rte_vhost_compat.c @@ -142,8 +142,8 @@ const struct vhost_device_ops g_spdk_vhost_ops = { .new_connection = new_connection, .destroy_connection = destroy_connection, #ifdef SPDK_CONFIG_VHOST_INTERNAL_LIB - .get_config = get_config, - .set_config = set_config, + .get_config = vhost_get_config_cb, + .set_config = vhost_set_config_cb, .vhost_nvme_admin_passthrough = vhost_nvme_admin_passthrough, .vhost_nvme_set_cq_call = vhost_nvme_set_cq_call, .vhost_nvme_get_cap = vhost_nvme_get_cap, diff --git a/lib/vhost/vhost_internal.h b/lib/vhost/vhost_internal.h index 387194414..6d15249bb 100644 --- a/lib/vhost/vhost_internal.h +++ b/lib/vhost/vhost_internal.h @@ -311,9 +311,9 @@ int vhost_stop_device_cb(int vid); int vhost_destroy_connection_cb(int vid); #ifdef SPDK_CONFIG_VHOST_INTERNAL_LIB -int vhost_get_config_cb(int vid, uint8_t *config, uint32_t len) +int vhost_get_config_cb(int vid, uint8_t *config, uint32_t len); int vhost_set_config_cb(int vid, uint8_t *config, uint32_t offset, - uint32_t size, uint32_t flags) + uint32_t size, uint32_t flags); #endif /*