Commit cd8e9833 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvme: remove unused CMB_SQ_SUPPORTED flag



The user can determine whether submission queues will be placed in the
controller memory buffer by checking the controller options use_cmb_sqs
flag in the attach callback.

Change-Id: I8a925ef99a48665a0e2ffaa90d9ff2b79b90b2fa
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 8f4ef2a8
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -963,9 +963,7 @@ nvme_ctrlr_map_cmb(struct spdk_nvme_ctrlr *ctrlr)
	ctrlr->cmb_size = size;
	ctrlr->cmb_current_offset = offset;

	if (cmbsz.bits.sqs) {
		ctrlr->flags |= SPDK_NVME_CTRLR_CMB_SQ_SUPPORTED;
	} else {
	if (!cmbsz.bits.sqs) {
		ctrlr->opts.use_cmb_sqs = false;
	}

+0 −1
Original line number Diff line number Diff line
@@ -139,7 +139,6 @@ enum nvme_payload_type {
 */
enum spdk_nvme_ctrlr_flags {
	SPDK_NVME_CTRLR_SGL_SUPPORTED		= 0x1, /**< The SGL is supported */
	SPDK_NVME_CTRLR_CMB_SQ_SUPPORTED	= 0x2, /**< The submission queue in controller memory buffer is supported */
};

/**