diff --git a/lib/event/subsystems/nvmf/nvmf_tgt.c b/lib/event/subsystems/nvmf/nvmf_tgt.c index 727f2c826..909fb7a09 100644 --- a/lib/event/subsystems/nvmf/nvmf_tgt.c +++ b/lib/event/subsystems/nvmf/nvmf_tgt.c @@ -158,7 +158,7 @@ nvmf_tgt_get_pg(struct spdk_nvmf_qpair *qpair) struct spdk_nvme_transport_id trid; struct nvmf_tgt_host_trid *tmp_trid = NULL, *new_trid = NULL; int ret; - uint32_t core = 0; + uint32_t core = spdk_env_get_first_core(); switch (g_spdk_nvmf_tgt_conf->conn_sched) { case CONNECT_SCHED_HOST_IP: