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

nvmf: stub out CC.EN reset path



It is not implemented yet, but add a message to remind us to write it
later.

Change-Id: Ic1c35a0d35f728bc63b38c334d9c622493bee967
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent b9a67e98
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -323,9 +323,14 @@ nvmf_prop_set_cc(struct nvmf_session *session, uint64_t value)

	cc.raw = (uint32_t)value;

	if (cc.bits.en && !session->vcprop.cc.bits.en) {
	if (cc.bits.en ^ session->vcprop.cc.bits.en) {
		if (cc.bits.en) {
			SPDK_TRACELOG(SPDK_TRACE_NVMF, "Property Set CC Enable!\n");
			session->vcprop.csts.bits.rdy = 1;
		} else {
			SPDK_ERRLOG("CC.EN transition from 1 to 0 (reset) not implemented!\n");
			/* TODO: reset */
		}
	}

	if (cc.bits.shn == SPDK_NVME_SHN_NORMAL ||