vhost_nvme: fix one compilation issue

Commit 1a1cbdf30 changed the struct spdk_vhost_dev to have static
cpumask variable which broke the complilation.  This patch will
fix that.

Change-Id: I8d0ef90f491e4fc4f0fae6faff2909fd3bd68053
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/479500
Community-CI: SPDK CI Jenkins <sys_sgci@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Changpeng Liu 2020-01-07 23:33:44 +08:00 committed by Tomasz Zawadzki
parent db126b3ee1
commit 2020418f2b

View File

@ -1128,7 +1128,7 @@ spdk_vhost_nvme_start(struct spdk_vhost_session *vsession)
return -1;
}
pg = vhost_get_poll_group(vsession->vdev->cpumask);
pg = vhost_get_poll_group(&vsession->vdev->cpumask);
return vhost_session_send_event(pg, vsession, spdk_vhost_nvme_start_cb,
3, "start session");
}
@ -1264,7 +1264,7 @@ spdk_vhost_nvme_write_config_json(struct spdk_vhost_dev *vdev, struct spdk_json_
spdk_json_write_named_object_begin(w, "params");
spdk_json_write_named_string(w, "ctrlr", nvme->vdev.name);
spdk_json_write_named_uint32(w, "io_queues", nvme->num_io_queues);
spdk_json_write_named_string(w, "cpumask", spdk_cpuset_fmt(nvme->vdev.cpumask));
spdk_json_write_named_string(w, "cpumask", spdk_cpuset_fmt(&nvme->vdev.cpumask));
spdk_json_write_object_end(w);
spdk_json_write_object_end(w);