nvme/cmb_copy: disable submission queue in CMB
Recent CMB changes disable using the CMB copy and submission queue at the same time, so disable use_cmb_sqs by default. Also spdk_nvme_ctrlr_map_cmb() changed the "size" parameter used as size of buffer that was mapped, so change it here too. Change-Id: If957674042b7f4a08e272bf5f9f2ee29f50805cb Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1955 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
163eba9565
commit
c34f224f56
@ -121,7 +121,7 @@ cmb_copy(void)
|
||||
|
||||
/* Allocate a buffer from our CMB */
|
||||
buf = spdk_nvme_ctrlr_map_cmb(g_config.cmb.ctrlr, &sz);
|
||||
if (buf == NULL || sz != g_config.copy_size) {
|
||||
if (buf == NULL || sz < g_config.copy_size) {
|
||||
printf("ERROR: buffer allocation failed\n");
|
||||
printf("Are you sure %s has a valid CMB?\n",
|
||||
g_config.cmb.trid.traddr);
|
||||
@ -183,6 +183,8 @@ probe_cb(void *cb_ctx, const struct spdk_nvme_transport_id *trid,
|
||||
return 0;
|
||||
}
|
||||
|
||||
opts->use_cmb_sqs = false;
|
||||
|
||||
printf("%s - probed %s!\n", __func__, trid->traddr);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user